Aller au contenu

Media Types

List (GET)

ENDPOINT : api/mediatypes

SECURITY : authenticated

Description : Lists all media types.

Headers

Terminal window
Authorization: Bearer JWT_TOKEN
Content-Type: application/json
Accept: application/json

Query Parameters

  • filters[-field-][-operator-] optional

    to see operators, see the operators

    nametypedescriptionexample
    filters[-field-][-operator-]stringFilters -field- where -operator- matches the string value.null

    example URL construct :

    Terminal window
    https://---API_SERVER---/api/libraries/-library_uuid-/media?filters[name][$contains]=<value>
  • sort[-order-] optional

    to see sort param, see the params

    nametypedescriptionexample
    sort[-order-]stringSorts a string value field in -order-, following ‘asc’ or ‘desc’ direction (ex: field%3Adesc).null

    example URL construct :

    Terminal window
    https://---API_SERVER---/api/libraries/-library_uuid-/media?sort[0]=name%3Aasc&sort[1]=updated_at%3Adesc

Example Request :

curl --request GET
--get "https://---API_SERVER---/api/formats?paginate=1"
--header "Content-Type: application/json"
--header "Accept: application/json"

Example response:

  • Status : 200