mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-25 16:34:00 +02:00
* fix: update links to production domain * add missing README change
title
| title |
|---|
| Anime Store |
Anime Store Endpoint
The anime store endpoint creates a new anime and returns the new anime resource.
For example, the /api/anime?name=Bakemonogatari&slug=bakemonogatari&year=2009&season=summer endpoint will create a new Bakemonogatari anime and return the new Bakemonogatari resource.
URL
POST /api/anime
Authentication
Required Permission: create anime
Roles with Permission: Wiki Editor, Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| name | Yes | string, max:192 |
| season | Yes | EnumValue {Winter, Spring, Summer, Fall} |
| slug | Yes | string, max:192, alpha_dash, unique |
| synopsis | No | string, max:65535 |
| year | Yes | integer, digits:4, min:1960, max:{current year + 1} |
Response
{
anime: {
id: id,
name: "name",
slug: "slug",
year: year,
season: "season",
synopsis: "synopsis",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at"
}
}