Skip to content

Latest commit

 

History

History
120 lines (84 loc) · 4.02 KB

BourreauxApi.md

File metadata and controls

120 lines (84 loc) · 4.02 KB

cbrain_api.BourreauxApi

All URIs are relative to http://localhost:3000

Method HTTP request Description
bourreaux_get GET /bourreaux Get a list of the Bourreaux available to be used by the current user.
bourreaux_id_get GET /bourreaux/{id} Get information about a Bourreau.

bourreaux_get

list[Bourreau] bourreaux_get(page=page, per_page=per_page)

Get a list of the Bourreaux available to be used by the current user.

This method returns a list of Bourreau objects.

Example

from __future__ import print_function
import time
import cbrain_api
from cbrain_api.rest import ApiException
from pprint import pprint

# Configure API key authorization: BrainPortalSession
configuration = cbrain_api.Configuration()
configuration.api_key['cbrain_api_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cbrain_api_token'] = 'Bearer'

# create an instance of the API class
api_instance = cbrain_api.BourreauxApi(cbrain_api.ApiClient(configuration))
page = 56 # int | Page number when paginating. See also the per_page parameter (optional)
per_page = 56 # int | Size of each page when paginating. See also the page parameter (optional)

try:
    # Get a list of the Bourreaux available to be used by the current user.
    api_response = api_instance.bourreaux_get(page=page, per_page=per_page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BourreauxApi->bourreaux_get: %s\n" % e)

Parameters

Name Type Description Notes
page int Page number when paginating. See also the per_page parameter [optional]
per_page int Size of each page when paginating. See also the page parameter [optional]

Return type

list[Bourreau]

Authorization

BrainPortalSession

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
  • Accept: application/json, application/xml

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

bourreaux_id_get

Bourreau bourreaux_id_get(id)

Get information about a Bourreau.

This method returns a single Bourreau object based on the ID parameter.

Example

from __future__ import print_function
import time
import cbrain_api
from cbrain_api.rest import ApiException
from pprint import pprint

# Configure API key authorization: BrainPortalSession
configuration = cbrain_api.Configuration()
configuration.api_key['cbrain_api_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cbrain_api_token'] = 'Bearer'

# create an instance of the API class
api_instance = cbrain_api.BourreauxApi(cbrain_api.ApiClient(configuration))
id = 56 # int | ID of the Bourreau to get information on.

try:
    # Get information about a Bourreau.
    api_response = api_instance.bourreaux_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BourreauxApi->bourreaux_id_get: %s\n" % e)

Parameters

Name Type Description Notes
id int ID of the Bourreau to get information on.

Return type

Bourreau

Authorization

BrainPortalSession

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
  • Accept: application/json, application/xml

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