Python Daemon (0.1.0)

Download OpenAPI specification:Download

[TEST] counter

[Test] Exception

Raises an exception

Returns: nothing

Authorizations:

Responses

Response samples

Content type
application/json
null

[Test] Get

Fetch the current counter value

Parameters:

  • user_id: id of the user

Returns: the current counter value

Authorizations:
Request Body schema: application/json
user_id
required
string <uuid4> (User Id)

Responses

Request samples

Content type
application/json
{
  • "user_id": "string"
}

Response samples

Content type
application/json
{
  • "value": 42
}

[Test] Increment

Increment the counter value

Parameters:

  • user_id: id of the user

Returns: the old and the new counter value

Authorizations:
Request Body schema: application/json
user_id
required
string <uuid4> (User Id)

Responses

Request samples

Content type
application/json
{
  • "user_id": "string"
}

Response samples

Content type
application/json
{
  • "old": 42,
  • "new": 43
}

[Test] Magic

Reset the counter using magic

Parameters:

  • user_id: id of the user

Returns: True

Authorizations:
Request Body schema: application/json
user_id
required
string <uuid4> (User Id)

Responses

Request samples

Content type
application/json
{
  • "user_id": "string"
}

Response samples

Content type
application/json
{
  • "ok": true
}

[Test] Set Value

Set the counter to a specific value

Parameters:

  • user_id: id of the user
  • password: secret password
  • value: new counter value

Returns: True

Authorizations:
Request Body schema: application/json
password
required
string (Password)
value
required
integer (Value)
user_id
required
string <uuid4> (User Id)

Responses

Request samples

Content type
application/json
{
  • "password": "string",
  • "value": 0,
  • "user_id": "string"
}

Response samples

Content type
application/json
{
  • "old": 42,
  • "new": 43
}

daemon

List Daemon Endpoints

Daemon info endpoint for the server

Returns: a list of dicts containing information about all endpoints and endpoint collections

Authorizations:

Responses

Response samples

Content type
application/json
[
  • {
    }
]