API Docs update

pull/5173/head
Qstick 2 years ago
parent db77c90724
commit 25eb0ba816

@ -6,7 +6,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Owin" Version="6.0.5" />
<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="Microsoft.Extensions.Hosting.WindowsServices" Version="6.0.0" />
<PackageReference Include="DryIoc.dll" Version="4.8.6" />

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

Loading…
Cancel
Save