Skip to content

Returns all existing categories

GET
/api/categories/{type}

Authorizations

Parameters

Path Parameters

type*
Typestring
Required

Responses

Success.
JSON
[
{
"id": 0,
"name": "string",
"usageCount": 0
}
]

Samples

cURL
curl -X GET http://localhost/api/categories/{type}
JavaScript
fetch("http://localhost/api/categories/{type}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/categories/{type}");
Python
import requests
response = requests.get("http://localhost/api/categories/{type}")
print(response.json())