For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Config

get

This class will define the view behavior

Args: viewsets ([OCSViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
limitintegerOptional

Number of results to return per page.

offsetintegerOptional

The initial index from which to return the results.

Responses
200Success
countintegerRequiredExample: 123
nextstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=400&limit=100
previousstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=200&limit=100
get/config/
GET /config/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100",
  "results": [
    {
      "name": "text",
      "value": null
    }
  ]
}
post

Handle post request, suitable for single and multi creation

Args: request ([dict]): can be dict or list of dicts

Returns: [type]: [description]

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

namestring · max: 100Required
valueanyRequired
Responses
201Success

This serialize class provide the API representation

namestring · max: 100Required
valueanyRequired
post/config/
POST /config/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 28

"name='text'&value=null"
201Success
{
  "name": "text",
  "value": null
}
get

This class will define the view behavior

Args: viewsets ([OCSViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
namestringRequired

A unique value identifying this config.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

namestring · max: 100Required
valueanyRequired
get/config/{name}/
GET /config/{name}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "name": "text",
  "value": null
}
put

This class will define the view behavior

Args: viewsets ([OCSViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
namestringRequired

A unique value identifying this config.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

namestring · max: 100Required
valueanyRequired
Responses
200Success

This serialize class provide the API representation

namestring · max: 100Required
valueanyRequired
put/config/{name}/
PUT /config/{name}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 28

"name='text'&value=null"
200Success
{
  "name": "text",
  "value": null
}
delete

This class will define the view behavior

Args: viewsets ([OCSViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
namestringRequired

A unique value identifying this config.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/config/{name}/
DELETE /config/{name}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

This class will define the view behavior

Args: viewsets ([OCSViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
namestringRequired

A unique value identifying this config.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

namestring · max: 100Optional
valueanyOptional
Responses
200Success

This serialize class provide the API representation

namestring · max: 100Required
valueanyRequired
patch/config/{name}/
PATCH /config/{name}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 28

"name='text'&value=null"
200Success
{
  "name": "text",
  "value": null
}

Last updated