From aa5443836a2674a3eaca540e4a9f6ddeaad88fed Mon Sep 17 00:00:00 2001 From: Kyrch Date: Wed, 1 Nov 2023 00:43:22 -0300 Subject: [PATCH] feat: added new resources enums (#94) --- docs/wiki/resource/index.md | 4 +++- docs/wiki/resource/store/index.md | 2 +- docs/wiki/resource/update/index.md | 2 +- docs/wiki/song/index.md | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/wiki/resource/index.md b/docs/wiki/resource/index.md index a454a6f..d553275 100644 --- a/docs/wiki/resource/index.md +++ b/docs/wiki/resource/index.md @@ -17,7 +17,7 @@ For example, the Bakemonogatari anime has MyAnimeList, AniList and AniDB resourc | id | Integer | No | Yes | The primary key of the resource | | 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] | +| 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, Spotify, YouTube Music, YouTube, Apple Music, Amazon Music ] | | 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 | @@ -26,12 +26,14 @@ For example, the Bakemonogatari anime has MyAnimeList, AniList and AniDB resourc * anime * artists +* song * studios ## Allowed Pivots * animeresource * artistresource +* songresource * studioresource ## Endpoints diff --git a/docs/wiki/resource/store/index.md b/docs/wiki/resource/store/index.md index 18c0fe4..80c2511 100644 --- a/docs/wiki/resource/store/index.md +++ b/docs/wiki/resource/store/index.md @@ -26,7 +26,7 @@ POST /resource | :---------: | :------: | :--------------------------------------------------------------------------------------------------------------------- | | link | Yes | max:192, url, link matches site | | external_id | No | integer, min:0 | -| site | Yes | EnumValue [Official Website, Twitter, AniDB, Anilist, Anime-Planet, Anime News Network, Kitsu, MyAnimeList, Wikipedia] | +| site | Yes | EnumValue [Official Website, Twitter, AniDB, Anilist, Anime-Planet, Anime News Network, Kitsu, MyAnimeList, Wikipedia, Spotify, YouTube Music, YouTube, Apple Music, Amazon Music ] | ## Response diff --git a/docs/wiki/resource/update/index.md b/docs/wiki/resource/update/index.md index dfa9681..a70d720 100644 --- a/docs/wiki/resource/update/index.md +++ b/docs/wiki/resource/update/index.md @@ -28,7 +28,7 @@ PUT|PATCH /resource/{id} | :---------: | :------: | :--------------------------------------------------------------------------------------------------------------------- | | link | No | max:192, url, link matches site | | external_id | No | integer, min:0 | -| site | No | EnumValue [Official Website, Twitter, AniDB, Anilist, Anime-Planet, Anime News Network, Kitsu, MyAnimeList, Wikipedia] | +| site | No | EnumValue [Official Website, Twitter, AniDB, Anilist, Anime-Planet, Anime News Network, Kitsu, MyAnimeList, Wikipedia, Spotify, YouTube Music, YouTube, Apple Music, Amazon Music ] | ## Response diff --git a/docs/wiki/song/index.md b/docs/wiki/song/index.md index 32c9d94..6438530 100644 --- a/docs/wiki/song/index.md +++ b/docs/wiki/song/index.md @@ -30,6 +30,7 @@ For example, Staple Stable is the song for the Bakemonogatari OP1 AnimeTheme. ## Allowed Pivots * artistsong +* songresource ## Endpoints