Skip to content

Get the list of resource categories.

GET
/api/resources/categories

Authorizations

Responses

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

Samples

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