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

Auth Config

get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
auth_methodintegerOptional
descriptionstringOptional
enabledbooleanOptional
formatstring · enumOptionalPossible values:
idintegerOptional
limitintegerOptional

Number of results to return per page.

namestringOptional
offsetintegerOptional

The initial index from which to return the results.

orderingstringOptional

Which field to use when ordering the results.

priorityintegerOptional
searchstringOptional

A search term.

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/auth_config/
GET /auth_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": [
    {
      "id": 1,
      "name": "text",
      "description": "text",
      "auth_method": 1,
      "enabled": true,
      "priority": 1,
      "config": null,
      "mappings": [
        1
      ]
    }
  ]
}
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

idintegerRead-onlyRequired
namestring · max: 255Optional
descriptionstring · nullableOptional
auth_methodinteger · nullableOptional
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configanyRequired
mappingsinteger[]Required
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Optional
descriptionstring · nullableOptional
auth_methodinteger · nullableOptional
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configanyRequired
mappingsinteger[]Required
post/auth_config/
POST /auth_config/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 109

"name='text'&description='text'&auth_method=1&enabled=true&priority=1&config=null&mappings=[1]"
201Success
{
  "id": 1,
  "name": "text",
  "description": "text",
  "auth_method": 1,
  "enabled": true,
  "priority": 1,
  "config": null,
  "mappings": [
    1
  ]
}
get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth config.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Optional
descriptionstring · nullableOptional
auth_methodinteger · nullableOptional
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configanyRequired
mappingsinteger[]Required
get/auth_config/{id}/
GET /auth_config/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "name": "text",
  "description": "text",
  "auth_method": 1,
  "enabled": true,
  "priority": 1,
  "config": null,
  "mappings": [
    1
  ]
}
put

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth config.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Optional
descriptionstring · nullableOptional
auth_methodinteger · nullableOptional
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configanyRequired
mappingsinteger[]Required
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Optional
descriptionstring · nullableOptional
auth_methodinteger · nullableOptional
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configanyRequired
mappingsinteger[]Required
put/auth_config/{id}/
PUT /auth_config/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 109

"name='text'&description='text'&auth_method=1&enabled=true&priority=1&config=null&mappings=[1]"
200Success
{
  "id": 1,
  "name": "text",
  "description": "text",
  "auth_method": 1,
  "enabled": true,
  "priority": 1,
  "config": null,
  "mappings": [
    1
  ]
}
delete

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth config.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/auth_config/{id}/
DELETE /auth_config/{id}/ 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
idintegerRequired

A unique integer value identifying this auth config.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
namestring · max: 255Optional
descriptionstring · nullableOptional
auth_methodinteger · nullableOptional
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configanyOptional
mappingsinteger[]Optional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Optional
descriptionstring · nullableOptional
auth_methodinteger · nullableOptional
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configanyRequired
mappingsinteger[]Required
patch/auth_config/{id}/
PATCH /auth_config/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 109

"name='text'&description='text'&auth_method=1&enabled=true&priority=1&config=null&mappings=[1]"
200Success
{
  "id": 1,
  "name": "text",
  "description": "text",
  "auth_method": 1,
  "enabled": true,
  "priority": 1,
  "config": null,
  "mappings": [
    1
  ]
}

Last updated