From 251e628caf16209431c692d6494bf1c337812430 Mon Sep 17 00:00:00 2001 From: Eric Teubert Date: Sun, 16 Jul 2023 10:47:18 +0200 Subject: [PATCH 1/2] change(api): update shows list & filter --- publisher/api.json | 83 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/publisher/api.json b/publisher/api.json index 0496b081..0eed2768 100644 --- a/publisher/api.json +++ b/publisher/api.json @@ -215,6 +215,15 @@ "all" ] } + }, + { + "name": "show", + "in": "query", + "description": "Filter by show slug.", + "style": "form", + "schema": { + "type": "string" + } } ], "responses": { @@ -2522,6 +2531,24 @@ } } }, + "/podlove/v2/shows": { + "get": { + "tags": ["shows"], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ShowsArray" + } + } + } + } + } + }, + "description": "A list of podcast shows.", + }, "/podlove/v2/social/services": { "get": { "tags": [ @@ -6588,6 +6615,60 @@ "comment": "Host of the episode." } }, + "ShowsArray": { + "type": "array", + "items": { + "properties": { + "id": { + "type": "integer", + "description": "Identifier of the show" + }, + "title": { + "type": "string", + "description": "Title for the show." + }, + "subtitle": { + "type": "string", + "description": "Subtitle for the show." + }, + "slug": { + "type": "string", + "description": "Slug for the show." + }, + "summary": { + "type": "string", + "description": "Summary for the show." + }, + "image": { + "type": "string", + "description": "Cover Image URL for the show." + }, + "language": { + "type": "string", + "description": "Language for the show." + }, + "category": { + "type": "string", + "description": "(internal) Podcast category code." + }, + "auphonic_preset": { + "type": "string", + "description": "(internal) Auphonic preset used by this show." + } + } + }, + "example": { + "id": 1, + "title": "My First Show", + "subtitle": "", + "slug": "my-first-show", + "summary": "", + "image": "https://example.com/media/cover.jpg", + "language": "de", + "category": "", + "auphonic_preset": "" + } + }, "SocialServicesArray": { "type": "array", "items": { @@ -6962,4 +7043,4 @@ } } } -} \ No newline at end of file +} From ad6e684b843b6d715c3f630febe00ef2eb2eb06e Mon Sep 17 00:00:00 2001 From: Dirk Schumann Date: Sat, 9 Nov 2024 18:50:53 +0100 Subject: [PATCH 2/2] fix docusaurus compile error --- publisher/api.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publisher/api.json b/publisher/api.json index 0eed2768..781931a1 100644 --- a/publisher/api.json +++ b/publisher/api.json @@ -2547,7 +2547,7 @@ } } }, - "description": "A list of podcast shows.", + "description": "A list of podcast shows." }, "/podlove/v2/social/services": { "get": {