horse-python-client

joj.horse_client.ProblemGroupApi

All URIs are relative to /api/v1

Method HTTP request Description
v1_list_problem_groups GET /problem_groups List Problem Groups

v1_list_problem_groups

ProblemGroupListResp v1_list_problem_groups(ordering=ordering, offset=offset, limit=limit)

List Problem Groups

Example

from __future__ import print_function
import time
import joj.horse_client
from joj.horse_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = joj.horse_client.ProblemGroupApi(joj.horse_client.ApiClient(configuration))
ordering = '' # str | Comma separated list of ordering the results. You may specify reverse orderings by prefixing the field name with '-'.  Available fields: created_at,updated_at (optional)
offset = 0 # int |  (optional) (default to 0)
limit = 100 # int |  (optional) (default to 100)

try:
    # List Problem Groups
    api_response = api_instance.v1_list_problem_groups(ordering=ordering, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProblemGroupApi->v1_list_problem_groups: %s\n" % e)

Parameters

Name Type Description Notes
ordering str Comma separated list of ordering the results. You may specify reverse orderings by prefixing the field name with '-'. Available fields: created_at,updated_at [optional]
offset int   [optional] [default to 0]
limit int   [optional] [default to 100]

Return type

ProblemGroupListResp

Authorization

HTTPBearer

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]