API Docs update

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

@ -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" />

@ -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": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/LanguageProfileResource" "type": "array",
"items": {
"$ref": "#/components/schemas/LanguageResource"
}
} }
}, },
"text/json": { "text/json": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
}
}
}
}
}
},
"get": {
"tags": [
"LanguageProfile"
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": { "schema": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/components/schemas/LanguageProfileResource" "$ref": "#/components/schemas/LanguageResource"
} }
} }
} }
@ -3078,10 +3058,10 @@
} }
} }
}, },
"/api/v3/languageprofile/{id}": { "/api/v3/language/{id}": {
"delete": { "get": {
"tags": [ "tags": [
"LanguageProfile" "Language"
], ],
"parameters": [ "parameters": [
{ {
@ -3096,59 +3076,41 @@
], ],
"responses": { "responses": {
"200": { "200": {
"description": "Success" "description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LanguageResource"
}
}
}
} }
} }
}, }
"put": { },
"/api/v3/localization": {
"get": {
"tags": [ "tags": [
"LanguageProfile" "Localization"
], ],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
}
}
}
},
"responses": { "responses": {
"200": { "200": {
"description": "Success", "description": "Success",
"content": { "content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
}
},
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/LanguageProfileResource" "$ref": "#/components/schemas/LocalizationResource"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
} }
} }
} }
} }
} }
}, }
},
"/api/v3/localization/{id}": {
"get": { "get": {
"tags": [ "tags": [
"LanguageProfile" "Localization"
], ],
"parameters": [ "parameters": [
{ {
@ -3167,26 +3129,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/LanguageProfileResource" "$ref": "#/components/schemas/LocalizationResource"
}
}
}
}
}
}
},
"/api/v3/languageprofile/schema": {
"get": {
"tags": [
"LanguageProfileSchema"
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LanguageProfileResource"
} }
} }
} }
@ -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,43 +8064,37 @@
}, },
"additionalProperties": false "additionalProperties": false
}, },
"LanguageProfileItemResource": { "LanguageResource": {
"type": "object", "type": "object",
"properties": { "properties": {
"id": { "id": {
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
}, },
"language": { "name": {
"$ref": "#/components/schemas/Language" "type": "string",
"nullable": true
}, },
"allowed": { "nameLower": {
"type": "boolean" "type": "string",
"nullable": true,
"readOnly": true
} }
}, },
"additionalProperties": false "additionalProperties": false
}, },
"LanguageProfileResource": { "LocalizationResource": {
"type": "object", "type": "object",
"properties": { "properties": {
"id": { "id": {
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
}, },
"name": { "strings": {
"type": "string", "type": "object",
"nullable": true "additionalProperties": {
}, "type": "string",
"upgradeAllowed": { "nullable": true
"type": "boolean"
},
"cutoff": {
"$ref": "#/components/schemas/Language"
},
"languages": {
"type": "array",
"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

Loading…
Cancel
Save