# Endpoints
## Responds with a status for heath check.
> Example request:
```bash
curl -X GET \
-G "http://localhost/api/ping" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/ping"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->get(
'http://localhost/api/ping',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
> Example response (200):
```json
{
"status": "ok",
"timestamp": "2020-12-30T20:48:32.889955Z",
"host": "127.0.0.1"
}
```
Request failed with error:
## api/assets/{uuid}/render
> Example request:
```bash
curl -X GET \
-G "http://localhost/api/assets/libero/render" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/assets/libero/render"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->get(
'http://localhost/api/assets/libero/render',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
> Example response (200):
```json
ÿØÿà JFIF ` ` ÿþ ;CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 90
ÿÛ C
ÿÛ C
ÿÀ ÿÄ
ÿÄ µ } !1AQa"q2‘¡#B±ÁRÑð$3br‚
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ
ÿÄ µ w !1AQaq"2B‘¡±Á #3RðbrÑ
$4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ ? ýS €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
( €
(ÿÙ
```
Request failed with error:
## api/users
> Example request:
```bash
curl -X POST \
"http://localhost/api/users" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/users"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://localhost/api/users',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/users/{uuid}
> Example request:
```bash
curl -X PUT \
"http://localhost/api/users/fugit" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/users/fugit"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->put(
'http://localhost/api/users/fugit',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/users/{uuid}
> Example request:
```bash
curl -X PATCH \
"http://localhost/api/users/et" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/users/et"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'http://localhost/api/users/et',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/users/{uuid}
> Example request:
```bash
curl -X DELETE \
"http://localhost/api/users/id" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/users/id"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'http://localhost/api/users/id',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/roles
> Example request:
```bash
curl -X GET \
-G "http://localhost/api/roles" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/roles"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->get(
'http://localhost/api/roles',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
> Example response (401):
```json
{
"message": "Unauthenticated.",
"status_code": 401
}
```
Request failed with error:
## api/roles
> Example request:
```bash
curl -X POST \
"http://localhost/api/roles" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/roles"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://localhost/api/roles',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/roles/{uuid}
> Example request:
```bash
curl -X GET \
-G "http://localhost/api/roles/ut" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/roles/ut"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->get(
'http://localhost/api/roles/ut',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
> Example response (401):
```json
{
"message": "Unauthenticated.",
"status_code": 401
}
```
Request failed with error:
## api/roles/{uuid}
> Example request:
```bash
curl -X PUT \
"http://localhost/api/roles/nemo" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/roles/nemo"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->put(
'http://localhost/api/roles/nemo',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/roles/{uuid}
> Example request:
```bash
curl -X PATCH \
"http://localhost/api/roles/nostrum" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/roles/nostrum"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'http://localhost/api/roles/nostrum',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/roles/{uuid}
> Example request:
```bash
curl -X DELETE \
"http://localhost/api/roles/quae" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/roles/quae"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'http://localhost/api/roles/quae',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/permissions
> Example request:
```bash
curl -X GET \
-G "http://localhost/api/permissions" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/permissions"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->get(
'http://localhost/api/permissions',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
> Example response (401):
```json
{
"message": "Unauthenticated.",
"status_code": 401
}
```
Request failed with error:
## api/me
> Example request:
```bash
curl -X GET \
-G "http://localhost/api/me" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/me"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->get(
'http://localhost/api/me',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
> Example response (401):
```json
{
"message": "Unauthenticated.",
"status_code": 401
}
```
Request failed with error:
## api/me
> Example request:
```bash
curl -X PUT \
"http://localhost/api/me" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/me"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->put(
'http://localhost/api/me',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/me
> Example request:
```bash
curl -X PATCH \
"http://localhost/api/me" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/me"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'http://localhost/api/me',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/me/password
> Example request:
```bash
curl -X PUT \
"http://localhost/api/me/password" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/me/password"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->put(
'http://localhost/api/me/password',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error:
## api/assets
> Example request:
```bash
curl -X POST \
"http://localhost/api/assets" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
```
```javascript
const url = new URL(
"http://localhost/api/assets"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
```
```php
$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://localhost/api/assets',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
```
Request failed with error: