From d511f7ee3e7b517fbb0a80bb22a1fa43b8172685 Mon Sep 17 00:00:00 2001 From: Servarr Date: Mon, 30 Oct 2023 19:42:36 +0000 Subject: [PATCH] Automated API Docs update --- src/Lidarr.Api.V1/openapi.json | 259 ++++++++++++++++++++++++++++++++- 1 file changed, 256 insertions(+), 3 deletions(-) diff --git a/src/Lidarr.Api.V1/openapi.json b/src/Lidarr.Api.V1/openapi.json index 8154ad643..62d199156 100644 --- a/src/Lidarr.Api.V1/openapi.json +++ b/src/Lidarr.Api.V1/openapi.json @@ -755,6 +755,183 @@ } } }, + "/api/v1/autotagging/{id}": { + "get": { + "tags": [ + "AutoTagging" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + } + } + } + } + }, + "put": { + "tags": [ + "AutoTagging" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AutoTagging" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success" + } + } + } + }, + "/api/v1/autotagging": { + "post": { + "tags": [ + "AutoTagging" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + } + } + } + } + }, + "get": { + "tags": [ + "AutoTagging" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AutoTaggingResource" + } + } + } + } + } + } + } + }, + "/api/v1/autotagging/schema": { + "get": { + "tags": [ + "AutoTagging" + ], + "responses": { + "200": { + "description": "Success" + } + } + } + }, "/api/v1/system/backup": { "get": { "tags": [ @@ -8847,6 +9024,74 @@ ], "type": "string" }, + "AutoTaggingResource": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "nullable": true + }, + "removeTagsAutomatically": { + "type": "boolean" + }, + "tags": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "integer", + "format": "int32" + }, + "nullable": true + }, + "specifications": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AutoTaggingSpecificationSchema" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "AutoTaggingSpecificationSchema": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "nullable": true + }, + "implementation": { + "type": "string", + "nullable": true + }, + "implementationName": { + "type": "string", + "nullable": true + }, + "negate": { + "type": "boolean" + }, + "required": { + "type": "boolean" + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Field" + }, + "nullable": true + } + }, + "additionalProperties": false + }, "BackupResource": { "type": "object", "properties": { @@ -12631,7 +12876,7 @@ }, "nullable": true }, - "artistIds": { + "indexerIds": { "type": "array", "items": { "type": "integer", @@ -12639,7 +12884,7 @@ }, "nullable": true }, - "indexerIds": { + "downloadClientIds": { "type": "array", "items": { "type": "integer", @@ -12647,7 +12892,15 @@ }, "nullable": true }, - "downloadClientIds": { + "autoTagIds": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + }, + "nullable": true + }, + "artistIds": { "type": "array", "items": { "type": "integer",