GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing cryptic-game.github.io — Python Daemon

Documentation Powered by ReDoc

Python Daemon (0.1.0)

Download OpenAPI specification:Download

[TEST] counter

[Test] Exception

Raises an exception

Returns: nothing

Authorizations:
HTTPAuthorization

Responses

/counter/exception

Response samples

  • 200
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:
HTTPAuthorization
Request Body schema: application/json
user_id
required
string <uuid4> (User Id)

Responses

/counter/get

Request samples

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

Response samples

  • 200
  • 404
  • 422
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:
HTTPAuthorization
Request Body schema: application/json
user_id
required
string <uuid4> (User Id)

Responses

/counter/increment

Request samples

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

Response samples

  • 200
  • 422
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:
HTTPAuthorization
Request Body schema: application/json
user_id
required
string <uuid4> (User Id)

Responses

/counter/reset

Request samples

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

Response samples

  • 200
  • 404
  • 422
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:
HTTPAuthorization
Request Body schema: application/json
password
required
string (Password)
value
required
integer (Value)
user_id
required
string <uuid4> (User Id)

Responses

/counter/set

Request samples

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

Response samples

  • 200
  • 401
  • 422
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:
HTTPAuthorization

Responses

/daemon/endpoints

Response samples

  • 200
Content type
application/json
[
  • {
    • "id": "<endpoint collection id>",
    • "description": "<endpoint collection description>",
    • "disabled": false,
    • "endpoints": [
      • {
        • "id": "<endpoint id>",
        • "description": "<endpoint description>",
        • "disabled": false
        }
      ]
    }
]
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.