Documentation Home

Genre

The Genre API allows people to retrieve info about genres.

GET

/genres

DESCRIPTION

Returns all genres, filtered by the 'genre' GET filter.

PARAMETERS

Parameter Type Required Description Values Default
genre GET Optional The genre name to filter by. Any text NULL

RESPONSE

Type: application/json

A JSON object that complies with the JSON API standard (www.jsonapi.org).

Status Code Meaning
200 Successfully queried genres.
401 Invalid API key provided.
405 Invalid request HTTP method.

Example Success Response

GET

/genres/:genre-id

DESCRIPTION

Returns info about the Genre entity associated with the given ID.

PARAMETERS

Parameter Type Required Description Values Default
genre-id URL_SLUG Required The ID of the Genre entity to retrieve. Any positive integer NULL

RESPONSE

Type: application/json

A JSON object that complies with the JSON API standard (www.jsonapi.org).

Status Code Meaning
200 Successfully queried specified genre.
401 Invalid API key provided.
404 No genre was found for the provided ID.
405 Invalid request HTTP method.

Example Success Response