From bc6df548fca5b108ef59cee9598e3a91e50b61ec Mon Sep 17 00:00:00 2001 From: Servarr Date: Tue, 17 Dec 2024 17:07:25 +0000 Subject: [PATCH] Automated API Docs update --- src/Lidarr.Api.V1/openapi.json | 56 ++++++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/src/Lidarr.Api.V1/openapi.json b/src/Lidarr.Api.V1/openapi.json index c92dfe454..a940258aa 100644 --- a/src/Lidarr.Api.V1/openapi.json +++ b/src/Lidarr.Api.V1/openapi.json @@ -327,7 +327,17 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlbumResource" + } + } + } + } } } } @@ -620,7 +630,17 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ArtistResource" + } + } + } + } } } } @@ -7292,7 +7312,17 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SearchResource" + } + } + } + } } } } @@ -12397,6 +12427,26 @@ ], "type": "string" }, + "SearchResource": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "foreignId": { + "type": "string", + "nullable": true + }, + "artist": { + "$ref": "#/components/schemas/ArtistResource" + }, + "album": { + "$ref": "#/components/schemas/AlbumResource" + } + }, + "additionalProperties": false + }, "SecondaryAlbumType": { "type": "object", "properties": {