Headers
Authorization: Bearer JWT_TOKENContent-Type: application/jsonAccept: application/jsonENDPOINT : api/mediatypes
SECURITY : authenticated
Description : Lists all media types.
Headers
Authorization: Bearer JWT_TOKENContent-Type: application/jsonAccept: application/jsonQuery Parameters
filters[-field-][-operator-] optional
to see operators, see the operators
| name | type | description | example |
|---|---|---|---|
| filters[-field-][-operator-] | string | Filters -field- where -operator- matches the string value. | null |
example URL construct :
https://---API_SERVER---/api/libraries/-library_uuid-/media?filters[name][$contains]=<value>sort[-order-] optional
to see sort param, see the params
| name | type | description | example |
|---|---|---|---|
| sort[-order-] | string | Sorts a string value field in -order-, following ‘asc’ or ‘desc’ direction (ex: field%3Adesc). | null |
example URL construct :
https://---API_SERVER---/api/libraries/-library_uuid-/media?sort[0]=name%3Aasc&sort[1]=updated_at%3Adesccurl --request GET--get "https://---API_SERVER---/api/formats?paginate=1"--header "Content-Type: application/json"--header "Accept: application/json"const url = new URL( "https://---API_SERVER---/api/environments");const headers = { "Authorization": "Bearer {JWT_TOKEN}", "Content-Type": "application/json", "Accept": "application/json",};fetch(url, { method: "GET", headers,}).then(response => response.json());200