From e6c97f6cc61937d67a58a1265ffbfd6ea800bcc4 Mon Sep 17 00:00:00 2001 From: paranarimasu <33796518+paranarimasu@users.noreply.github.com> Date: Tue, 23 May 2023 23:49:28 -0500 Subject: [PATCH] feat: add allowed pivots (#88) --- docs/wiki/anime/index.md | 4 ++++ docs/wiki/artist/index.md | 7 ++++++- docs/wiki/resource/index.md | 7 ++++++- docs/wiki/song/index.md | 19 +++++++++++-------- docs/wiki/studio/index.md | 4 ++++ 5 files changed, 31 insertions(+), 10 deletions(-) diff --git a/docs/wiki/anime/index.md b/docs/wiki/anime/index.md index 67efd3f..28f8efb 100644 --- a/docs/wiki/anime/index.md +++ b/docs/wiki/anime/index.md @@ -39,6 +39,10 @@ For example, Bakemonogatari is an anime production with five opening sequences a * series * studios +## Allowed Pivots + +* animeresource + ## Endpoints **[Anime Destroy](/wiki/anime/destroy/)** diff --git a/docs/wiki/artist/index.md b/docs/wiki/artist/index.md index e30afb2..830e707 100644 --- a/docs/wiki/artist/index.md +++ b/docs/wiki/artist/index.md @@ -17,7 +17,6 @@ For example, Chiwa Saitou is the musical performer of the Bakemonogatari OP1 the | id | Integer | No | Yes | The primary key of the resource | | name | String | No | Yes | The primary title of the artist | | slug | String | No | Yes | The URL slug & route key of the resource | -| as | String | No | Yes | Used to distinguish a performance by alias, character or group | | created_at | Date | No | No | The date that the resource was created | | updated_at | Date | No | No | The date that the resource was last modified | | deleted_at | Date | Yes | No | The date that the resource was deleted | @@ -32,6 +31,12 @@ For example, Chiwa Saitou is the musical performer of the Bakemonogatari OP1 the * songs.animethemes * songs.animethemes.anime +## Allowed Pivots + +* artistmember +* artistresource +* artistsong + ## Endpoints **[Artist Destroy](/wiki/artist/destroy/)** diff --git a/docs/wiki/resource/index.md b/docs/wiki/resource/index.md index 5515a10..a454a6f 100644 --- a/docs/wiki/resource/index.md +++ b/docs/wiki/resource/index.md @@ -18,7 +18,6 @@ For example, the Bakemonogatari anime has MyAnimeList, AniList and AniDB resourc | link | String | Yes | Yes | The URL of the external site | | external_id | Integer | Yes | Yes | The primary key of the resource in the external site | | site | Enum | Yes | Yes | The external site that the resource belongs to [Official Website, Twitter, AniDB, Anilist, Anime-Planet, Anime News Network, Kitsu, MyAnimeList, Wikipedia] | -| as | String | Yes | Yes | Used to distinguish resources that map to the same artist or anime | | created_at | Date | No | No | The date that the resource was created | | updated_at | Date | No | No | The date that the resource was last modified | | deleted_at | Date | Yes | No | The date that the resource was deleted | @@ -29,6 +28,12 @@ For example, the Bakemonogatari anime has MyAnimeList, AniList and AniDB resourc * artists * studios +## Allowed Pivots + +* animeresource +* artistresource +* studioresource + ## Endpoints **[Resource Destroy](/wiki/resource/destroy/)** diff --git a/docs/wiki/song/index.md b/docs/wiki/song/index.md index 1b568ee..33652ed 100644 --- a/docs/wiki/song/index.md +++ b/docs/wiki/song/index.md @@ -12,14 +12,13 @@ For example, Staple Stable is the song for the Bakemonogatari OP1 AnimeTheme. ## Fields -| Name | Type | Nullable | Default | Description | -| :--------: | :-----: | :------: | :-----: | :------------------------------------------------------------- | -| id | Integer | No | Yes | The primary key of the resource | -| title | String | Yes | Yes | The name of the composition | -| as | String | Yes | Yes | Used to distinguish a performance by alias, character or group | -| created_at | Date | No | No | The date that the resource was created | -| updated_at | Date | No | No | The date that the resource was last modified | -| deleted_at | Date | Yes | No | The date that the resource was deleted | +| Name | Type | Nullable | Default | Description | +| :--------: | :-----: | :------: | :-----: | :------------------------------------------- | +| id | Integer | No | Yes | The primary key of the resource | +| title | String | Yes | Yes | The name of the composition | +| created_at | Date | No | No | The date that the resource was created | +| updated_at | Date | No | No | The date that the resource was last modified | +| deleted_at | Date | Yes | No | The date that the resource was deleted | ## Allowed Include Paths @@ -27,6 +26,10 @@ For example, Staple Stable is the song for the Bakemonogatari OP1 AnimeTheme. * animethemes.anime * artists +## Allowed Pivots + +* artistsong + ## Endpoints **[Song Destroy](/wiki/song/destroy/)** diff --git a/docs/wiki/studio/index.md b/docs/wiki/studio/index.md index 6096bb6..6e5c894 100644 --- a/docs/wiki/studio/index.md +++ b/docs/wiki/studio/index.md @@ -27,6 +27,10 @@ For example, Shaft is the studio that produced the anime Bakemonogatari. * images * resources +## Allowed Pivots + +* studioresource + ## Endpoints **[Studio Destroy](/wiki/studio/destroy/)**