mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
4.0 KiB
4.0 KiB
title
| title |
|---|
| Anime Theme Entry Index |
Anime Theme Entry Index Endpoint
The anime theme entry index endpoint returns a listing of anime theme entry resources.
URL
GET /animethemeentry/
Authentication
None
Parameters
| Name | Required | Description |
|---|---|---|
| fields | No | Sparse fieldsets for resource types |
| filter | No | Filters for synonym resources & constraining the inclusion of related resources |
| include | No | Inclusion of related resources |
| page[number] | No | The page of synonym resources to display |
| page[size] | No | The number of synonym resources to display for the current page |
| q | No | The query to search for matching synonym resources |
| sort | No | The list of fields to sort the resources |
Allowed Sort Fields
| Name | Description |
|---|---|
| id | Sort resources on the primary key |
| version | Sort resources on the version number of the entry |
| episodes | Sort resources on the episodes that the theme is used for |
| nsfw | Sort resources on nsfw content |
| spoiler | Sort resources on spoiler content |
| notes | Sort resources on additional information for the entry |
| created_at | Sort resources on the resource creation date |
| updated_at | Sort resources on the resource last modified date |
| deleted_at | Sort resources on the resource deletion date |
| random | Sort resources randomly. Ignored if other sort fields are provided. |
Filters
| Name | Description |
|---|---|
| id | Filter resources on the primary key |
| version | Filter resources on the version number of the entry |
| episodes | Filter resources on the episodes that the theme is used for |
| nsfw | Filter resources on nsfw content |
| spoiler | Filter resources on spoiler content |
| notes | Filter resources on additional information for the entry |
| created_at | Filter resources on the resource creation date |
| updated_at | Filter resources on the resource last modified date |
| deleted_at | Filter resources on the resource deletion date |
| trashed | Filter resources on trashed (deleted) status [With, Without, Only] |
| has | Filter resources on relations within allowed include paths |
Response
{
animethemeentries: [
{
id: id,
version: version,
episodes: "episodes",
nsfw: nsfw,
spoiler: spoiler,
notes: "notes",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at"
},
...
],
links: {
first: "first",
last: "last",
prev: "prev",
next: "next"
},
meta: {
current_page: current_page,
from: from,
path: "path",
per_page: per_page,
to: to
}
}
Example
curl https://api.animethemes.moe/animethemeentry/