mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
84 lines
3.2 KiB
Markdown
84 lines
3.2 KiB
Markdown
---
|
|
title: Anime
|
|
---
|
|
|
|
# Anime
|
|
|
|
---
|
|
|
|
An anime API resource represents a production with at least one opening or ending sequence.
|
|
|
|
For example, Bakemonogatari is an anime production with five opening sequences and one ending sequence.
|
|
|
|
## Fields
|
|
|
|
| Name | Type | Nullable | Description |
|
|
| :--------: | :-----: | :------: | :------------------------------------------------------------------------------ |
|
|
| id | Integer | No | The primary key of the resource |
|
|
| name | String | No | The primary title of the anime |
|
|
| slug | String | No | The URL slug & route key of the resource |
|
|
| year | Integer | Yes | The premiere year of the anime |
|
|
| season | Enum | Yes | The premiere season of the anime [Winter, Spring, Summer, Fall] |
|
|
| media_format | Enum | No | The media format of the anime [Unknown, TV, TV Short, OVA, Movie, Special, ONA] |
|
|
| synopsis | String | Yes | The brief summary of the anime |
|
|
| created_at | Date | No | The date that the resource was created |
|
|
| updated_at | Date | No | The date that the resource was last modified |
|
|
| deleted_at | Date | Yes | The date that the resource was deleted |
|
|
|
|
## Allowed Include Paths
|
|
|
|
* animesynonyms
|
|
* animethemes
|
|
* animethemes.animethemeentries
|
|
* animethemes.animethemeentries.videos
|
|
* animethemes.animethemeentries.videos.audio
|
|
* animethemes.animethemeentries.videos.videoscript
|
|
* animethemes.group
|
|
* animethemes.song
|
|
* animethemes.song.artists
|
|
* images
|
|
* resources
|
|
* series
|
|
* studios
|
|
|
|
## Allowed Pivots
|
|
|
|
* animeresource
|
|
|
|
## Endpoints
|
|
|
|
**[Anime Destroy](/content/anime/destroy/)**
|
|
|
|
The anime destroy endpoint soft deletes an anime and returns the deleted anime resource.
|
|
|
|
**[Anime Force Delete](/content/anime/forceDelete/)**
|
|
|
|
The anime force delete endpoint hard deletes an anime and returns a confirmation message.
|
|
|
|
**[Anime Index](/content/anime/index/)**
|
|
|
|
The anime index endpoint displays a listing of anime resources.
|
|
|
|
**[Anime Restore](/content/anime/restore/)**
|
|
|
|
The anime restore endpoint restores a soft deleted anime and returns the restored anime resource.
|
|
|
|
**[Anime Show](/content/anime/show/)**
|
|
|
|
The anime show endpoint returns an anime resource.
|
|
|
|
**[Anime Store](/content/anime/store/)**
|
|
|
|
The anime store endpoint creates a new anime and returns the new anime resource.
|
|
|
|
**[Anime Update](/content/anime/update/)**
|
|
|
|
The anime update endpoint updates an anime and returns the updated anime resource.
|
|
|
|
**[Year Show](/content/animeyear/show/)**
|
|
|
|
The year show endpoint return a listing of anime resources for a given year grouped by season and ordered by name.
|
|
|
|
**[Year Index](/content/animeyear/index/)**
|
|
|
|
The year index endpoint returns a list of unique years from all anime resources. |