sidebar_position |
---|
4 |
import ApiCodeBlock from '../../src/components/ApiCodeBlock'; import Highlight from '../../src/components/Highlight'; import ApiTryIt from '../../src/components/ApiTryIt';
export const endpoints = [ { method: 'GET', uri: '/v1/resources' }, { method: 'GET', uri: '/v1/resources/:version/:type' }, ];
AniAPI provides an endpoint to retrieve general purpose content, most of them utils. The API allows you to retrieve the last available Resources' version and retrieve individual Resource providing a version and a type.
This is an array of strings
containing all the availables genre
value across AniAPI.
Version | Description |
---|---|
1.0 |
Default values |
This is an array of objects
containing all the possible locale
values inside AniAPI.
The locale's ISO 639‑1 language code.
The locale's description.
Version | Description |
---|---|
1.0 |
Initial support for en and it values |
1.1.5 |
Added support for pl value |
No parameters.
Returns a string
which identifies the latest available Resources' version.
:::caution
Older Resources' versions will be available forever, in order to serve also external services that don't follow our updates.
:::
"GENRES": 0,
"LOCALIZATIONS": 1
Returns a Resource object according to the version
and type
values provided.
export const getResourceParams = [ { name: ':version', type: 'text', placeholder: ':version', value: '1.0' }, { name: ':type', type: 'number', placeholder: ':type', value: '0' } ];