Automated API Docs update

pull/5840/head
Servarr 2 years ago committed by Qstick
parent 006c9289de
commit 14cccd3a23

@ -584,6 +584,169 @@
} }
} }
}, },
"/api/v3/collection": {
"get": {
"tags": [
"Collection"
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CollectionResource"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CollectionResource"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CollectionResource"
}
}
}
}
}
}
},
"put": {
"tags": [
"Collection"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CollectionUpdateResource"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/CollectionUpdateResource"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/CollectionUpdateResource"
}
}
}
},
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/v3/collection/{id}": {
"put": {
"tags": [
"Collection"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CollectionResource"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/CollectionResource"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/CollectionResource"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/CollectionResource"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/CollectionResource"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/CollectionResource"
}
}
}
}
}
},
"get": {
"tags": [
"Collection"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/CollectionResource"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/CollectionResource"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/CollectionResource"
}
}
}
}
}
}
},
"/api/v3/command": { "/api/v3/command": {
"post": { "post": {
"tags": [ "tags": [
@ -8159,12 +8322,55 @@
"ignoreEpisodesWithoutFiles": { "ignoreEpisodesWithoutFiles": {
"type": "boolean" "type": "boolean"
}, },
"monitor": {
"$ref": "#/components/schemas/MonitorTypes"
},
"searchForMovie": { "searchForMovie": {
"type": "boolean" "type": "boolean"
} }
}, },
"additionalProperties": false "additionalProperties": false
}, },
"AlternativeTitle": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"sourceType": {
"$ref": "#/components/schemas/SourceType"
},
"movieMetadataId": {
"type": "integer",
"format": "int32"
},
"title": {
"type": "string",
"nullable": true
},
"cleanTitle": {
"type": "string",
"nullable": true
},
"sourceId": {
"type": "integer",
"format": "int32"
},
"votes": {
"type": "integer",
"format": "int32"
},
"voteCount": {
"type": "integer",
"format": "int32"
},
"language": {
"$ref": "#/components/schemas/Language"
}
},
"additionalProperties": false
},
"AlternativeTitleResource": { "AlternativeTitleResource": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -8372,86 +8578,233 @@
], ],
"type": "string" "type": "string"
}, },
"ColonReplacementFormat": { "CollectionMovieResource": {
"enum": [
"delete",
"dash",
"spaceDash",
"spaceDashSpace"
],
"type": "string"
},
"Command": {
"type": "object", "type": "object",
"properties": { "properties": {
"sendUpdatesToClient": { "tmdbId": {
"type": "boolean" "type": "integer",
}, "format": "int32"
"updateScheduledTask": {
"type": "boolean",
"readOnly": true
}, },
"completionMessage": { "imdbId": {
"type": "string", "type": "string",
"nullable": true, "nullable": true
"readOnly": true
},
"requiresDiskAccess": {
"type": "boolean",
"readOnly": true
},
"isExclusive": {
"type": "boolean",
"readOnly": true
},
"isTypeExclusive": {
"type": "boolean",
"readOnly": true
}, },
"name": { "title": {
"type": "string", "type": "string",
"nullable": true, "nullable": true
"readOnly": true
}, },
"lastExecutionTime": { "cleanTitle": {
"type": "string", "type": "string",
"format": "date-time",
"nullable": true "nullable": true
}, },
"lastStartTime": { "sortTitle": {
"type": "string", "type": "string",
"format": "date-time",
"nullable": true "nullable": true
}, },
"trigger": { "overview": {
"$ref": "#/components/schemas/CommandTrigger"
},
"suppressMessages": {
"type": "boolean"
},
"clientUserAgent": {
"type": "string", "type": "string",
"nullable": true "nullable": true
} },
}, "runtime": {
"additionalProperties": false
},
"CommandPriority": {
"enum": [
"normal",
"high",
"low"
],
"type": "string"
},
"CommandResource": {
"type": "object",
"properties": {
"id": {
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
}, },
"name": { "images": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MediaCover"
},
"nullable": true
},
"year": {
"type": "integer",
"format": "int32"
},
"ratings": {
"$ref": "#/components/schemas/Ratings"
},
"genres": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true
},
"folder": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"CollectionResource": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"title": {
"type": "string",
"nullable": true
},
"sortTitle": {
"type": "string",
"nullable": true
},
"tmdbId": {
"type": "integer",
"format": "int32"
},
"images": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MediaCover"
},
"nullable": true
},
"overview": {
"type": "string",
"nullable": true
},
"monitored": {
"type": "boolean"
},
"rootFolderPath": {
"type": "string",
"nullable": true
},
"qualityProfileId": {
"type": "integer",
"format": "int32"
},
"searchOnAdd": {
"type": "boolean"
},
"minimumAvailability": {
"$ref": "#/components/schemas/MovieStatusType"
},
"movies": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CollectionMovieResource"
},
"nullable": true
}
},
"additionalProperties": false
},
"CollectionUpdateCollectionResource": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"monitored": {
"type": "boolean",
"nullable": true
}
},
"additionalProperties": false
},
"CollectionUpdateResource": {
"type": "object",
"properties": {
"collections": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CollectionUpdateCollectionResource"
},
"nullable": true
},
"monitorMovies": {
"type": "boolean",
"nullable": true
}
},
"additionalProperties": false
},
"ColonReplacementFormat": {
"enum": [
"delete",
"dash",
"spaceDash",
"spaceDashSpace"
],
"type": "string"
},
"Command": {
"type": "object",
"properties": {
"sendUpdatesToClient": {
"type": "boolean"
},
"updateScheduledTask": {
"type": "boolean",
"readOnly": true
},
"completionMessage": {
"type": "string",
"nullable": true,
"readOnly": true
},
"requiresDiskAccess": {
"type": "boolean",
"readOnly": true
},
"isExclusive": {
"type": "boolean",
"readOnly": true
},
"isTypeExclusive": {
"type": "boolean",
"readOnly": true
},
"name": {
"type": "string",
"nullable": true,
"readOnly": true
},
"lastExecutionTime": {
"type": "string",
"format": "date-time",
"nullable": true
},
"lastStartTime": {
"type": "string",
"format": "date-time",
"nullable": true
},
"trigger": {
"$ref": "#/components/schemas/CommandTrigger"
},
"suppressMessages": {
"type": "boolean"
},
"clientUserAgent": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"CommandPriority": {
"enum": [
"normal",
"high",
"low"
],
"type": "string"
},
"CommandResource": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string", "type": "string",
"nullable": true "nullable": true
}, },
@ -9427,8 +9780,8 @@
"enableAuto": { "enableAuto": {
"type": "boolean" "type": "boolean"
}, },
"shouldMonitor": { "monitor": {
"type": "boolean" "$ref": "#/components/schemas/MonitorTypes"
}, },
"rootFolderPath": { "rootFolderPath": {
"type": "string", "type": "string",
@ -10100,10 +10453,30 @@
], ],
"type": "string" "type": "string"
}, },
"MonitorTypes": {
"enum": [
"movieOnly",
"movieAndCollection",
"none"
],
"type": "string"
},
"MovieCollection": { "MovieCollection": {
"type": "object", "type": "object",
"properties": { "properties": {
"name": { "id": {
"type": "integer",
"format": "int32"
},
"title": {
"type": "string",
"nullable": true
},
"cleanTitle": {
"type": "string",
"nullable": true
},
"sortTitle": {
"type": "string", "type": "string",
"nullable": true "nullable": true
}, },
@ -10111,12 +10484,49 @@
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
}, },
"overview": {
"type": "string",
"nullable": true
},
"monitored": {
"type": "boolean"
},
"qualityProfileId": {
"type": "integer",
"format": "int32"
},
"rootFolderPath": {
"type": "string",
"nullable": true
},
"searchOnAdd": {
"type": "boolean"
},
"minimumAvailability": {
"$ref": "#/components/schemas/MovieStatusType"
},
"lastInfoSync": {
"type": "string",
"format": "date-time",
"nullable": true
},
"images": { "images": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/components/schemas/MediaCover" "$ref": "#/components/schemas/MediaCover"
}, },
"nullable": true "nullable": true
},
"added": {
"type": "string",
"format": "date-time"
},
"movies": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MovieMetadata"
},
"nullable": true
} }
}, },
"additionalProperties": false "additionalProperties": false
@ -10298,6 +10708,158 @@
], ],
"type": "string" "type": "string"
}, },
"MovieMetadata": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"tmdbId": {
"type": "integer",
"format": "int32"
},
"images": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MediaCover"
},
"nullable": true
},
"genres": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true
},
"inCinemas": {
"type": "string",
"format": "date-time",
"nullable": true
},
"physicalRelease": {
"type": "string",
"format": "date-time",
"nullable": true
},
"digitalRelease": {
"type": "string",
"format": "date-time",
"nullable": true
},
"certification": {
"type": "string",
"nullable": true
},
"year": {
"type": "integer",
"format": "int32"
},
"ratings": {
"$ref": "#/components/schemas/Ratings"
},
"collectionTmdbId": {
"type": "integer",
"format": "int32"
},
"collectionTitle": {
"type": "string",
"nullable": true
},
"lastInfoSync": {
"type": "string",
"format": "date-time",
"nullable": true
},
"runtime": {
"type": "integer",
"format": "int32"
},
"website": {
"type": "string",
"nullable": true
},
"imdbId": {
"type": "string",
"nullable": true
},
"title": {
"type": "string",
"nullable": true
},
"cleanTitle": {
"type": "string",
"nullable": true
},
"sortTitle": {
"type": "string",
"nullable": true
},
"status": {
"$ref": "#/components/schemas/MovieStatusType"
},
"overview": {
"type": "string",
"nullable": true
},
"alternativeTitles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AlternativeTitle"
},
"nullable": true
},
"translations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MovieTranslation"
},
"nullable": true
},
"secondaryYear": {
"type": "integer",
"format": "int32",
"nullable": true
},
"youTubeTrailerId": {
"type": "string",
"nullable": true
},
"studio": {
"type": "string",
"nullable": true
},
"originalTitle": {
"type": "string",
"nullable": true
},
"cleanOriginalTitle": {
"type": "string",
"nullable": true
},
"originalLanguage": {
"$ref": "#/components/schemas/Language"
},
"recommendations": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"nullable": true
},
"popularity": {
"type": "number",
"format": "float"
},
"isRecentMovie": {
"type": "boolean",
"readOnly": true
}
},
"additionalProperties": false
},
"MovieResource": { "MovieResource": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -10506,6 +11068,35 @@
], ],
"type": "string" "type": "string"
}, },
"MovieTranslation": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"movieMetadataId": {
"type": "integer",
"format": "int32"
},
"title": {
"type": "string",
"nullable": true
},
"cleanTitle": {
"type": "string",
"nullable": true
},
"overview": {
"type": "string",
"nullable": true
},
"language": {
"$ref": "#/components/schemas/Language"
}
},
"additionalProperties": false
},
"NamingConfigResource": { "NamingConfigResource": {
"type": "object", "type": "object",
"properties": { "properties": {

Loading…
Cancel
Save