API Docs update

This commit is contained in:
Qstick 2022-11-04 10:45:47 -05:00
parent db77c90724
commit 25eb0ba816
2 changed files with 145 additions and 174 deletions

View File

@ -6,7 +6,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Owin" Version="6.0.5" /> <PackageReference Include="Microsoft.AspNetCore.Owin" Version="6.0.5" />
<PackageReference Include="NLog.Extensions.Logging" Version="1.7.4" /> <PackageReference Include="NLog.Extensions.Logging" Version="1.7.4" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.3.2" /> <PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.4.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" /> <PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="6.0.0" /> <PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="6.0.0" />
<PackageReference Include="DryIoc.dll" Version="4.8.6" /> <PackageReference Include="DryIoc.dll" Version="4.8.6" />

View File

@ -3020,56 +3020,36 @@
} }
} }
}, },
"/api/v3/languageprofile": { "/api/v3/language": {
"post": { "get": {
"tags": [ "tags": [
"LanguageProfile" "Language"
], ],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
}
}
}
},
"responses": { "responses": {
"200": { "200": {
"description": "Success", "description": "Success",
"content": { "content": {
"text/plain": { "text/plain": {
"schema": { "schema": {
"$ref": "#/components/schemas/LanguageProfileResource" "type": "array",
"items": {
"$ref": "#/components/schemas/LanguageResource"
}
} }
}, },
"application/json": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
}
}
}
}
}
},
"get": {
"tags": [
"LanguageProfile"
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/components/schemas/LanguageProfileResource" "$ref": "#/components/schemas/LanguageResource"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LanguageResource"
} }
} }
} }
@ -3078,77 +3058,10 @@
} }
} }
}, },
"/api/v3/languageprofile/{id}": { "/api/v3/language/{id}": {
"delete": {
"tags": [
"LanguageProfile"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
},
"put": {
"tags": [
"LanguageProfile"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
}
}
}
}
}
},
"get": { "get": {
"tags": [ "tags": [
"LanguageProfile" "Language"
], ],
"parameters": [ "parameters": [
{ {
@ -3167,7 +3080,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/LanguageProfileResource" "$ref": "#/components/schemas/LanguageResource"
} }
} }
} }
@ -3175,10 +3088,10 @@
} }
} }
}, },
"/api/v3/languageprofile/schema": { "/api/v3/localization": {
"get": { "get": {
"tags": [ "tags": [
"LanguageProfileSchema" "Localization"
], ],
"responses": { "responses": {
"200": { "200": {
@ -3186,7 +3099,37 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/LanguageProfileResource" "$ref": "#/components/schemas/LocalizationResource"
}
}
}
}
}
}
},
"/api/v3/localization/{id}": {
"get": {
"tags": [
"Localization"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LocalizationResource"
} }
} }
} }
@ -6715,8 +6658,12 @@
"type": "string", "type": "string",
"nullable": true "nullable": true
}, },
"language": { "languages": {
"$ref": "#/components/schemas/Language" "type": "array",
"items": {
"$ref": "#/components/schemas/Language"
},
"nullable": true
}, },
"quality": { "quality": {
"$ref": "#/components/schemas/QualityModel" "$ref": "#/components/schemas/QualityModel"
@ -6819,6 +6766,10 @@
"type": "boolean", "type": "boolean",
"readOnly": true "readOnly": true
}, },
"isLongRunning": {
"type": "boolean",
"readOnly": true
},
"name": { "name": {
"type": "string", "type": "string",
"nullable": true, "nullable": true,
@ -7221,8 +7172,12 @@
}, },
"nullable": true "nullable": true
}, },
"language": { "languages": {
"$ref": "#/components/schemas/Language" "type": "array",
"items": {
"$ref": "#/components/schemas/Language"
},
"nullable": true
}, },
"quality": { "quality": {
"$ref": "#/components/schemas/QualityModel" "$ref": "#/components/schemas/QualityModel"
@ -7277,8 +7232,12 @@
"type": "string", "type": "string",
"nullable": true "nullable": true
}, },
"language": { "languages": {
"$ref": "#/components/schemas/Language" "type": "array",
"items": {
"$ref": "#/components/schemas/Language"
},
"nullable": true
}, },
"quality": { "quality": {
"$ref": "#/components/schemas/QualityModel" "$ref": "#/components/schemas/QualityModel"
@ -7295,9 +7254,6 @@
}, },
"qualityCutoffNotMet": { "qualityCutoffNotMet": {
"type": "boolean" "type": "boolean"
},
"languageCutoffNotMet": {
"type": "boolean"
} }
}, },
"additionalProperties": false "additionalProperties": false
@ -7607,8 +7563,12 @@
"type": "string", "type": "string",
"nullable": true "nullable": true
}, },
"language": { "languages": {
"$ref": "#/components/schemas/Language" "type": "array",
"items": {
"$ref": "#/components/schemas/Language"
},
"nullable": true
}, },
"quality": { "quality": {
"$ref": "#/components/schemas/QualityModel" "$ref": "#/components/schemas/QualityModel"
@ -7623,9 +7583,6 @@
"qualityCutoffNotMet": { "qualityCutoffNotMet": {
"type": "boolean" "type": "boolean"
}, },
"languageCutoffNotMet": {
"type": "boolean"
},
"date": { "date": {
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
@ -7767,6 +7724,10 @@
"type": "string", "type": "string",
"nullable": true "nullable": true
}, },
"applicationUrl": {
"type": "string",
"nullable": true
},
"updateAutomatically": { "updateAutomatically": {
"type": "boolean" "type": "boolean"
}, },
@ -7951,10 +7912,6 @@
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
}, },
"languageProfileId": {
"type": "integer",
"format": "int32"
},
"seriesType": { "seriesType": {
"$ref": "#/components/schemas/SeriesTypes" "$ref": "#/components/schemas/SeriesTypes"
}, },
@ -7976,7 +7933,8 @@
"program", "program",
"plex", "plex",
"trakt", "trakt",
"other" "other",
"advanced"
], ],
"type": "string" "type": "string"
}, },
@ -8081,6 +8039,10 @@
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
}, },
"seasonSearchMaximumSingleEpisodeAge": {
"type": "integer",
"format": "int32"
},
"downloadClientId": { "downloadClientId": {
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
@ -8102,23 +8064,7 @@
}, },
"additionalProperties": false "additionalProperties": false
}, },
"LanguageProfileItemResource": { "LanguageResource": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"language": {
"$ref": "#/components/schemas/Language"
},
"allowed": {
"type": "boolean"
}
},
"additionalProperties": false
},
"LanguageProfileResource": {
"type": "object", "type": "object",
"properties": { "properties": {
"id": { "id": {
@ -8129,16 +8075,26 @@
"type": "string", "type": "string",
"nullable": true "nullable": true
}, },
"upgradeAllowed": { "nameLower": {
"type": "boolean" "type": "string",
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"LocalizationResource": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
}, },
"cutoff": { "strings": {
"$ref": "#/components/schemas/Language" "type": "object",
}, "additionalProperties": {
"languages": { "type": "string",
"type": "array", "nullable": true
"items": {
"$ref": "#/components/schemas/LanguageProfileItemResource"
}, },
"nullable": true "nullable": true
} }
@ -8286,8 +8242,12 @@
"quality": { "quality": {
"$ref": "#/components/schemas/QualityModel" "$ref": "#/components/schemas/QualityModel"
}, },
"language": { "languages": {
"$ref": "#/components/schemas/Language" "type": "array",
"items": {
"$ref": "#/components/schemas/Language"
},
"nullable": true
}, },
"releaseGroup": { "releaseGroup": {
"type": "string", "type": "string",
@ -8361,8 +8321,12 @@
"quality": { "quality": {
"$ref": "#/components/schemas/QualityModel" "$ref": "#/components/schemas/QualityModel"
}, },
"language": { "languages": {
"$ref": "#/components/schemas/Language" "type": "array",
"items": {
"$ref": "#/components/schemas/Language"
},
"nullable": true
}, },
"qualityWeight": { "qualityWeight": {
"type": "integer", "type": "integer",
@ -8913,8 +8877,12 @@
"type": "string", "type": "string",
"nullable": true "nullable": true
}, },
"language": { "languages": {
"$ref": "#/components/schemas/Language" "type": "array",
"items": {
"$ref": "#/components/schemas/Language"
},
"nullable": true
}, },
"fullSeason": { "fullSeason": {
"type": "boolean" "type": "boolean"
@ -9223,8 +9191,12 @@
"episode": { "episode": {
"$ref": "#/components/schemas/EpisodeResource" "$ref": "#/components/schemas/EpisodeResource"
}, },
"language": { "languages": {
"$ref": "#/components/schemas/Language" "type": "array",
"items": {
"$ref": "#/components/schemas/Language"
},
"nullable": true
}, },
"quality": { "quality": {
"$ref": "#/components/schemas/QualityModel" "$ref": "#/components/schemas/QualityModel"
@ -9510,8 +9482,12 @@
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
}, },
"language": { "languages": {
"$ref": "#/components/schemas/Language" "type": "array",
"items": {
"$ref": "#/components/schemas/Language"
},
"nullable": true
}, },
"languageWeight": { "languageWeight": {
"type": "integer", "type": "integer",
@ -9932,11 +9908,6 @@
"format": "int32", "format": "int32",
"nullable": true "nullable": true
}, },
"languageProfileId": {
"type": "integer",
"format": "int32",
"nullable": true
},
"seriesType": { "seriesType": {
"$ref": "#/components/schemas/SeriesTypes" "$ref": "#/components/schemas/SeriesTypes"
}, },
@ -10056,10 +10027,6 @@
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
}, },
"languageProfileId": {
"type": "integer",
"format": "int32"
},
"seasonFolder": { "seasonFolder": {
"type": "boolean" "type": "boolean"
}, },
@ -10480,6 +10447,10 @@
"theme": { "theme": {
"type": "string", "type": "string",
"nullable": true "nullable": true
},
"uiLanguage": {
"type": "integer",
"format": "int32"
} }
}, },
"additionalProperties": false "additionalProperties": false