Counter API (0.0.1)

Download OpenAPI specification:Download

counter

Retrieve the current counter

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}

Reset the counter to 0

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}

Increment the counter

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}

Decrement the counter

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}

Double the counter

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}

extension 1

Set the counter to a specific value via a query parameter

query Parameters
value
integer

The value to set the counter to

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}

extension 2

Retrieve the current counter for the provided counter name

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}

Reset the counter for the provided name to 0

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}

Increment the counter for the provided name

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}

Decrement the counter for the provided name

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}

Double the counter for the provided name

Responses

Response samples

Content type
application/json
{
  • "counter": 0
}