diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index da728fffb3..ff52d3c2aa 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -110,7 +110,10 @@ stages: } } - dotnet pack $(solution) --configuration $(buildConfiguration) --no-build --output $(Build.ArtifactStagingDirectory)/nupkg + foreach($csproj in Get-ChildItem –Path "src/" -Recurse -Filter *.csproj) + { + dotnet pack $csproj --configuration $(buildConfiguration) --no-build --output $(Build.ArtifactStagingDirectory)/nupkg + } - script: | sha="$(Build.SourceVersion)" sha=${sha:0:7} diff --git a/src/Umbraco.Cms.Api.Common/Configuration/ConfigureApiBehaviorOptions.cs b/src/Umbraco.Cms.Api.Common/Configuration/ConfigureApiBehaviorOptions.cs new file mode 100644 index 0000000000..ac1a98eb9a --- /dev/null +++ b/src/Umbraco.Cms.Api.Common/Configuration/ConfigureApiBehaviorOptions.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Options; + +namespace Umbraco.Cms.Api.Common.Configuration; + +public class ConfigureApiBehaviorOptions : IConfigureOptions +{ + public void Configure(ApiBehaviorOptions options) => + // disable ProblemDetails as default result type for every non-success response (i.e. 404) + // - see https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.apibehavioroptions.suppressmapclienterrors + options.SuppressMapClientErrors = true; +} diff --git a/src/Umbraco.Cms.Api.Common/Json/NamedSystemTextJsonInputFormatter.cs b/src/Umbraco.Cms.Api.Common/Json/NamedSystemTextJsonInputFormatter.cs index 73814f8211..1ae57bd8c4 100644 --- a/src/Umbraco.Cms.Api.Common/Json/NamedSystemTextJsonInputFormatter.cs +++ b/src/Umbraco.Cms.Api.Common/Json/NamedSystemTextJsonInputFormatter.cs @@ -4,7 +4,7 @@ using Microsoft.Extensions.Logging; namespace Umbraco.Cms.Api.Common.Json; -public class NamedSystemTextJsonInputFormatter : SystemTextJsonInputFormatter +internal class NamedSystemTextJsonInputFormatter : SystemTextJsonInputFormatter { private readonly string _jsonOptionsName; diff --git a/src/Umbraco.Cms.Api.Common/Json/NamedSystemTextJsonOutputFormatter.cs b/src/Umbraco.Cms.Api.Common/Json/NamedSystemTextJsonOutputFormatter.cs index 9759542828..bd1b17b81d 100644 --- a/src/Umbraco.Cms.Api.Common/Json/NamedSystemTextJsonOutputFormatter.cs +++ b/src/Umbraco.Cms.Api.Common/Json/NamedSystemTextJsonOutputFormatter.cs @@ -3,7 +3,8 @@ using Microsoft.AspNetCore.Mvc.Formatters; namespace Umbraco.Cms.Api.Common.Json; -public class NamedSystemTextJsonOutputFormatter : SystemTextJsonOutputFormatter + +internal class NamedSystemTextJsonOutputFormatter : SystemTextJsonOutputFormatter { private readonly string _jsonOptionsName; diff --git a/src/Umbraco.Cms.Api.Management/Controllers/Dictionary/AllDictionaryController.cs b/src/Umbraco.Cms.Api.Management/Controllers/Dictionary/AllDictionaryController.cs index 76af20b0b9..d925985b9e 100644 --- a/src/Umbraco.Cms.Api.Management/Controllers/Dictionary/AllDictionaryController.cs +++ b/src/Umbraco.Cms.Api.Management/Controllers/Dictionary/AllDictionaryController.cs @@ -5,6 +5,7 @@ using Umbraco.Cms.Core.Models; using Umbraco.Cms.Core.Services; using Umbraco.Cms.Api.Management.ViewModels.Dictionary; using Umbraco.Cms.Api.Common.ViewModels.Pagination; +using Umbraco.Cms.Core; namespace Umbraco.Cms.Api.Management.Controllers.Dictionary; @@ -25,7 +26,7 @@ public class AllDictionaryController : DictionaryControllerBase public async Task>> All(int skip = 0, int take = 100) { // unfortunately we can't paginate here...we'll have to get all and paginate in memory - IDictionaryItem[] items = (await _dictionaryItemService.GetDescendantsAsync(null)).ToArray(); + IDictionaryItem[] items = (await _dictionaryItemService.GetDescendantsAsync(Constants.System.RootKey)).ToArray(); var model = new PagedViewModel { Total = items.Length, diff --git a/src/Umbraco.Cms.Api.Management/Controllers/Dictionary/ExportDictionaryController.cs b/src/Umbraco.Cms.Api.Management/Controllers/Dictionary/ExportDictionaryController.cs index 1ffadcd06c..a87c99cef2 100644 --- a/src/Umbraco.Cms.Api.Management/Controllers/Dictionary/ExportDictionaryController.cs +++ b/src/Umbraco.Cms.Api.Management/Controllers/Dictionary/ExportDictionaryController.cs @@ -23,7 +23,7 @@ public class ExportDictionaryController : DictionaryControllerBase [HttpGet("{key:guid}/export")] [MapToApiVersion("1.0")] [ProducesResponseType(typeof(FileContentResult), StatusCodes.Status200OK)] - [ProducesResponseType(typeof(NotFoundResult), StatusCodes.Status404NotFound)] + [ProducesResponseType(StatusCodes.Status404NotFound)] public async Task Export(Guid key, bool includeChildren = false) { IDictionaryItem? dictionaryItem = await _dictionaryItemService.GetAsync(key); diff --git a/src/Umbraco.Cms.Api.Management/Controllers/Install/SetupInstallController.cs b/src/Umbraco.Cms.Api.Management/Controllers/Install/SetupInstallController.cs index 8e13fb2cfb..457da88695 100644 --- a/src/Umbraco.Cms.Api.Management/Controllers/Install/SetupInstallController.cs +++ b/src/Umbraco.Cms.Api.Management/Controllers/Install/SetupInstallController.cs @@ -41,7 +41,6 @@ public class SetupInstallController : InstallControllerBase InstallData data = _mapper.Map(installData)!; await _installService.Install(data); - var backOfficePath = _globalSettings.GetBackOfficePath(_hostingEnvironment); - return Created(backOfficePath, null); + return Ok(); } } diff --git a/src/Umbraco.Cms.Api.Management/Controllers/Language/UpdateLanguageController.cs b/src/Umbraco.Cms.Api.Management/Controllers/Language/UpdateLanguageController.cs index a2c014c4f4..4ff6e3945b 100644 --- a/src/Umbraco.Cms.Api.Management/Controllers/Language/UpdateLanguageController.cs +++ b/src/Umbraco.Cms.Api.Management/Controllers/Language/UpdateLanguageController.cs @@ -29,7 +29,7 @@ public class UpdateLanguageController : LanguageControllerBase [HttpPut($"{{{nameof(isoCode)}}}")] [MapToApiVersion("1.0")] - [ProducesResponseType(typeof(NotFoundResult), StatusCodes.Status404NotFound)] + [ProducesResponseType(StatusCodes.Status404NotFound)] [ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)] [ProducesResponseType(StatusCodes.Status200OK)] public async Task Update(string isoCode, LanguageUpdateModel languageUpdateModel) diff --git a/src/Umbraco.Cms.Api.Management/Controllers/LogViewer/SavedSearch/ByNameSavedSearchLogViewerController.cs b/src/Umbraco.Cms.Api.Management/Controllers/LogViewer/SavedSearch/ByNameSavedSearchLogViewerController.cs index ef6e062423..d411cca221 100644 --- a/src/Umbraco.Cms.Api.Management/Controllers/LogViewer/SavedSearch/ByNameSavedSearchLogViewerController.cs +++ b/src/Umbraco.Cms.Api.Management/Controllers/LogViewer/SavedSearch/ByNameSavedSearchLogViewerController.cs @@ -25,7 +25,7 @@ public class ByNameSavedSearchLogViewerController : SavedSearchLogViewerControll /// The saved log search or not found result. [HttpGet("{name}")] [MapToApiVersion("1.0")] - [ProducesResponseType(typeof(NotFoundResult), StatusCodes.Status404NotFound)] + [ProducesResponseType(StatusCodes.Status404NotFound)] [ProducesResponseType(typeof(SavedLogSearchViewModel), StatusCodes.Status200OK)] public async Task> ByName(string name) { diff --git a/src/Umbraco.Cms.Api.Management/Controllers/LogViewer/SavedSearch/DeleteSavedSearchLogViewerController.cs b/src/Umbraco.Cms.Api.Management/Controllers/LogViewer/SavedSearch/DeleteSavedSearchLogViewerController.cs index 7ffe8daa74..5f7ae438fe 100644 --- a/src/Umbraco.Cms.Api.Management/Controllers/LogViewer/SavedSearch/DeleteSavedSearchLogViewerController.cs +++ b/src/Umbraco.Cms.Api.Management/Controllers/LogViewer/SavedSearch/DeleteSavedSearchLogViewerController.cs @@ -20,7 +20,7 @@ public class DeleteSavedSearchLogViewerController : SavedSearchLogViewerControll /// The result of the deletion. [HttpDelete("{name}")] [MapToApiVersion("1.0")] - [ProducesResponseType(typeof(NotFoundResult), StatusCodes.Status404NotFound)] + [ProducesResponseType(StatusCodes.Status404NotFound)] [ProducesResponseType(StatusCodes.Status200OK)] public async Task Delete(string name) { diff --git a/src/Umbraco.Cms.Api.Management/Controllers/ModelsBuilder/BuildModelsBuilderController.cs b/src/Umbraco.Cms.Api.Management/Controllers/ModelsBuilder/BuildModelsBuilderController.cs index 5fd8233579..4303d6f0bc 100644 --- a/src/Umbraco.Cms.Api.Management/Controllers/ModelsBuilder/BuildModelsBuilderController.cs +++ b/src/Umbraco.Cms.Api.Management/Controllers/ModelsBuilder/BuildModelsBuilderController.cs @@ -29,7 +29,7 @@ public class BuildModelsBuilderController : ModelsBuilderControllerBase } [HttpPost("build")] - [ProducesResponseType(typeof(CreatedResult), StatusCodes.Status201Created)] + [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status428PreconditionRequired)] [MapToApiVersion("1.0")] public async Task BuildModels() @@ -46,7 +46,7 @@ public class BuildModelsBuilderController : ModelsBuilderControllerBase Type = "Error", }; - return await Task.FromResult(new ObjectResult(problemDetailsModel) { StatusCode = StatusCodes.Status428PreconditionRequired }); + return new ObjectResult(problemDetailsModel) { StatusCode = StatusCodes.Status428PreconditionRequired }; } _modelGenerator.GenerateModels(); @@ -57,6 +57,6 @@ public class BuildModelsBuilderController : ModelsBuilderControllerBase _mbErrors.Report("Failed to build models.", e); } - return await Task.FromResult(Created("api/v1/modelsBuilderDashboard", null)); + return Ok(); } } diff --git a/src/Umbraco.Cms.Api.Management/Controllers/Relation/ByIdRelationController.cs b/src/Umbraco.Cms.Api.Management/Controllers/Relation/ByIdRelationController.cs index a9ac8cf0cd..c9e8c66430 100644 --- a/src/Umbraco.Cms.Api.Management/Controllers/Relation/ByIdRelationController.cs +++ b/src/Umbraco.Cms.Api.Management/Controllers/Relation/ByIdRelationController.cs @@ -21,7 +21,7 @@ public class ByIdRelationController : RelationControllerBase [HttpGet("{id:int}")] [MapToApiVersion("1.0")] [ProducesResponseType(typeof(RelationViewModel), StatusCodes.Status200OK)] - [ProducesResponseType(typeof(NotFoundResult), StatusCodes.Status404NotFound)] + [ProducesResponseType(StatusCodes.Status404NotFound)] public async Task ById(int id) { IRelation? relation = _relationService.GetById(id); diff --git a/src/Umbraco.Cms.Api.Management/DependencyInjection/BackOfficeAuthBuilderExtensions.cs b/src/Umbraco.Cms.Api.Management/DependencyInjection/BackOfficeAuthBuilderExtensions.cs index 332d744ba4..412886aa71 100644 --- a/src/Umbraco.Cms.Api.Management/DependencyInjection/BackOfficeAuthBuilderExtensions.cs +++ b/src/Umbraco.Cms.Api.Management/DependencyInjection/BackOfficeAuthBuilderExtensions.cs @@ -59,8 +59,8 @@ public static class BackOfficeAuthBuilderExtensions { // Enable the authorization and token endpoints. options - .SetAuthorizationEndpointUris(Controllers.Security.Paths.BackOfficeApiAuthorizationEndpoint) - .SetTokenEndpointUris(Controllers.Security.Paths.BackOfficeApiTokenEndpoint); + .SetAuthorizationEndpointUris(Controllers.Security.Paths.BackOfficeApiAuthorizationEndpoint.TrimStart('/')) + .SetTokenEndpointUris(Controllers.Security.Paths.BackOfficeApiTokenEndpoint.TrimStart('/')); // Enable authorization code flow with PKCE options diff --git a/src/Umbraco.Cms.Api.Management/ManagementApiComposer.cs b/src/Umbraco.Cms.Api.Management/ManagementApiComposer.cs index fc5cc5c492..56d67ae0df 100644 --- a/src/Umbraco.Cms.Api.Management/ManagementApiComposer.cs +++ b/src/Umbraco.Cms.Api.Management/ManagementApiComposer.cs @@ -1,6 +1,3 @@ -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Text.Json.Serialization.Metadata; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Umbraco.Cms.Core.Composing; @@ -9,7 +6,6 @@ using Umbraco.Cms.Api.Common.Configuration; using Umbraco.Cms.Api.Common.DependencyInjection; using Umbraco.Cms.Api.Management.DependencyInjection; using Umbraco.Cms.Api.Management.Serialization; -using Umbraco.Cms.Infrastructure.Serialization; using Umbraco.Cms.Web.Common.ApplicationBuilder; using Umbraco.New.Cms.Core.Models.Configuration; @@ -46,6 +42,7 @@ public class ManagementApiComposer : IComposer services .ConfigureOptions() + .ConfigureOptions() .Configure(options => { options.AddFilter(new UmbracoPipelineFilter( diff --git a/src/Umbraco.Cms.Api.Management/OpenApi.json b/src/Umbraco.Cms.Api.Management/OpenApi.json index 42262ac2d2..328914ed1f 100644 --- a/src/Umbraco.Cms.Api.Management/OpenApi.json +++ b/src/Umbraco.Cms.Api.Management/OpenApi.json @@ -67,7 +67,17 @@ }, "responses": { "201": { - "description": "Created" + "description": "Created", + "headers": { + "Location": { + "description": "Location of the newly created resource", + "schema": { + "type": "string", + "description": "Location of the newly created resource", + "format": "uri" + } + } + } }, "400": { "description": "Bad Request", @@ -80,14 +90,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -125,14 +128,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } }, @@ -167,14 +163,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } }, @@ -222,14 +211,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -266,17 +248,20 @@ }, "responses": { "201": { - "description": "Created" - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { + "description": "Created", + "headers": { + "Location": { + "description": "Location of the newly created resource", "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" + "type": "string", + "description": "Location of the newly created resource", + "format": "uri" } } } + }, + "404": { + "description": "Not Found" } } } @@ -316,14 +301,7 @@ "description": "Success" }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -364,14 +342,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -397,7 +368,17 @@ }, "responses": { "201": { - "description": "Created" + "description": "Created", + "headers": { + "Location": { + "description": "Location of the newly created resource", + "schema": { + "type": "string", + "description": "Location of the newly created resource", + "format": "uri" + } + } + } } } } @@ -435,14 +416,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } }, @@ -467,14 +441,7 @@ "description": "Success" }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } }, @@ -512,14 +479,7 @@ "description": "Success" }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -730,18 +690,21 @@ }, "responses": { "201": { - "description": "Created" - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { + "description": "Created", + "headers": { + "Location": { + "description": "Location of the newly created resource", "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" + "type": "string", + "description": "Location of the newly created resource", + "format": "uri" } } } }, + "404": { + "description": "Not Found" + }, "400": { "description": "Bad Request", "content": { @@ -798,14 +761,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } }, @@ -840,14 +796,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } }, @@ -895,14 +844,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -945,14 +887,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotFoundResultModel" - } - } - } + "description": "Not Found" } } } @@ -1002,14 +937,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -1035,7 +963,17 @@ }, "responses": { "201": { - "description": "Created" + "description": "Created", + "headers": { + "Location": { + "description": "Location of the newly created resource", + "schema": { + "type": "string", + "description": "Location of the newly created resource", + "format": "uri" + } + } + } }, "400": { "description": "Bad Request", @@ -1048,14 +986,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -1488,14 +1419,7 @@ ], "responses": { "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Unauthorized" }, "200": { "description": "Success", @@ -1538,14 +1462,7 @@ ], "responses": { "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Unauthorized" }, "200": { "description": "Success", @@ -1791,14 +1708,7 @@ ], "responses": { "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" }, "200": { "description": "Success", @@ -1835,14 +1745,7 @@ ], "responses": { "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" }, "200": { "description": "Success", @@ -2285,14 +2188,7 @@ }, "responses": { "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" }, "400": { "description": "Bad Request", @@ -2305,7 +2201,17 @@ } }, "201": { - "description": "Created" + "description": "Created", + "headers": { + "Location": { + "description": "Location of the newly created resource", + "schema": { + "type": "string", + "description": "Location of the newly created resource", + "format": "uri" + } + } + } } } } @@ -2328,14 +2234,7 @@ ], "responses": { "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" }, "200": { "description": "Success", @@ -2424,14 +2323,7 @@ }, "responses": { "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotFoundResultModel" - } - } - } + "description": "Not Found" }, "400": { "description": "Bad Request", @@ -2745,7 +2637,17 @@ } }, "201": { - "description": "Created" + "description": "Created", + "headers": { + "Location": { + "description": "Location of the newly created resource", + "schema": { + "type": "string", + "description": "Location of the newly created resource", + "format": "uri" + } + } + } } } } @@ -2768,14 +2670,7 @@ ], "responses": { "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotFoundResultModel" - } - } - } + "description": "Not Found" }, "200": { "description": "Success", @@ -2810,14 +2705,7 @@ ], "responses": { "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotFoundResultModel" - } - } - } + "description": "Not Found" }, "200": { "description": "Success" @@ -3049,14 +2937,7 @@ ], "responses": { "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Unauthorized" }, "200": { "description": "Success", @@ -3099,14 +2980,7 @@ ], "responses": { "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Unauthorized" }, "200": { "description": "Success", @@ -3473,15 +3347,8 @@ ], "operationId": "PostModelsBuilderBuild", "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreatedResultModel" - } - } - } + "200": { + "description": "Success" }, "428": { "description": "Client Error", @@ -4037,14 +3904,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotFoundResultModel" - } - } - } + "description": "Not Found" } } } @@ -4792,7 +4652,17 @@ }, "responses": { "201": { - "description": "Created" + "description": "Created", + "headers": { + "Location": { + "description": "Location of the newly created resource", + "schema": { + "type": "string", + "description": "Location of the newly created resource", + "format": "uri" + } + } + } }, "400": { "description": "Bad Request", @@ -4805,14 +4675,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -4850,14 +4713,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } }, @@ -4892,14 +4748,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } }, @@ -4947,14 +4796,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -5042,14 +4884,7 @@ } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetailsModel" - } - } - } + "description": "Not Found" } } } @@ -5431,146 +5266,6 @@ }, "components": { "schemas": { - "ActionJsonTypeInfoModel": { - "type": "object", - "properties": { - "target": { - "nullable": true, - "readOnly": true - }, - "method": { - "$ref": "#/components/schemas/MethodInfoModel" - } - }, - "additionalProperties": false - }, - "AngularJsonMediaTypeFormatterModel": { - "required": [ - "$type" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/NewtonsoftJsonOutputFormatterModel" - } - ], - "properties": { - "$type": { - "type": "string" - } - }, - "additionalProperties": false, - "discriminator": { - "propertyName": "$type", - "mapping": { - "AngularJsonMediaTypeFormatter": "#/components/schemas/AngularJsonMediaTypeFormatterModel" - } - } - }, - "AssemblyModel": { - "type": "object", - "properties": { - "definedTypes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TypeInfoModel" - }, - "readOnly": true - }, - "exportedTypes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TypeModel" - }, - "readOnly": true - }, - "codeBase": { - "type": "string", - "nullable": true, - "readOnly": true, - "deprecated": true - }, - "entryPoint": { - "$ref": "#/components/schemas/MethodInfoModel" - }, - "fullName": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "imageRuntimeVersion": { - "type": "string", - "readOnly": true - }, - "isDynamic": { - "type": "boolean", - "readOnly": true - }, - "location": { - "type": "string", - "readOnly": true - }, - "reflectionOnly": { - "type": "boolean", - "readOnly": true - }, - "isCollectible": { - "type": "boolean", - "readOnly": true - }, - "isFullyTrusted": { - "type": "boolean", - "readOnly": true - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "escapedCodeBase": { - "type": "string", - "readOnly": true, - "deprecated": true - }, - "manifestModule": { - "$ref": "#/components/schemas/ModuleModel" - }, - "modules": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ModuleModel" - }, - "readOnly": true - }, - "globalAssemblyCache": { - "type": "boolean", - "readOnly": true, - "deprecated": true - }, - "hostContext": { - "type": "integer", - "format": "int64", - "readOnly": true - }, - "securityRuleSet": { - "$ref": "#/components/schemas/SecurityRuleSetModel" - } - }, - "additionalProperties": false - }, - "CallingConventionsModel": { - "enum": [ - "Standard", - "VarArgs", - "Any", - "HasThis", - "ExplicitThis" - ], - "type": "integer", - "format": "int32" - }, "ConsentLevelModel": { "type": "object", "properties": { @@ -5583,136 +5278,6 @@ }, "additionalProperties": false }, - "ConstructorInfoModel": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "declaringType": { - "$ref": "#/components/schemas/TypeModel" - }, - "reflectedType": { - "$ref": "#/components/schemas/TypeModel" - }, - "module": { - "$ref": "#/components/schemas/ModuleModel" - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "isCollectible": { - "type": "boolean", - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "attributes": { - "$ref": "#/components/schemas/MethodAttributesModel" - }, - "methodImplementationFlags": { - "$ref": "#/components/schemas/MethodImplAttributesModel" - }, - "callingConvention": { - "$ref": "#/components/schemas/CallingConventionsModel" - }, - "isAbstract": { - "type": "boolean", - "readOnly": true - }, - "isConstructor": { - "type": "boolean", - "readOnly": true - }, - "isFinal": { - "type": "boolean", - "readOnly": true - }, - "isHideBySig": { - "type": "boolean", - "readOnly": true - }, - "isSpecialName": { - "type": "boolean", - "readOnly": true - }, - "isStatic": { - "type": "boolean", - "readOnly": true - }, - "isVirtual": { - "type": "boolean", - "readOnly": true - }, - "isAssembly": { - "type": "boolean", - "readOnly": true - }, - "isFamily": { - "type": "boolean", - "readOnly": true - }, - "isFamilyAndAssembly": { - "type": "boolean", - "readOnly": true - }, - "isFamilyOrAssembly": { - "type": "boolean", - "readOnly": true - }, - "isPrivate": { - "type": "boolean", - "readOnly": true - }, - "isPublic": { - "type": "boolean", - "readOnly": true - }, - "isConstructedGenericMethod": { - "type": "boolean", - "readOnly": true - }, - "isGenericMethod": { - "type": "boolean", - "readOnly": true - }, - "isGenericMethodDefinition": { - "type": "boolean", - "readOnly": true - }, - "containsGenericParameters": { - "type": "boolean", - "readOnly": true - }, - "methodHandle": { - "$ref": "#/components/schemas/RuntimeMethodHandleModel" - }, - "isSecurityCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecuritySafeCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecurityTransparent": { - "type": "boolean", - "readOnly": true - }, - "memberType": { - "$ref": "#/components/schemas/MemberTypesModel" - } - }, - "additionalProperties": false - }, "ContentTreeItemModel": { "type": "object", "allOf": [ @@ -5730,45 +5295,6 @@ }, "additionalProperties": false }, - "CreatedResultModel": { - "type": "object", - "properties": { - "value": { - "nullable": true - }, - "formatters": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/NamedSystemTextJsonOutputFormatterModel" - }, - { - "$ref": "#/components/schemas/AngularJsonMediaTypeFormatterModel" - } - ] - } - }, - "contentTypes": { - "type": "array", - "items": { - "type": "string" - } - }, - "declaredType": { - "$ref": "#/components/schemas/TypeModel" - }, - "statusCode": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "location": { - "type": "string" - } - }, - "additionalProperties": false - }, "CultureModel": { "type": "object", "properties": { @@ -5781,64 +5307,6 @@ }, "additionalProperties": false }, - "CustomAttributeDataModel": { - "type": "object", - "properties": { - "attributeType": { - "$ref": "#/components/schemas/TypeModel" - }, - "constructor": { - "$ref": "#/components/schemas/ConstructorInfoModel" - }, - "constructorArguments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeTypedArgumentModel" - }, - "readOnly": true - }, - "namedArguments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeNamedArgumentModel" - }, - "readOnly": true - } - }, - "additionalProperties": false - }, - "CustomAttributeNamedArgumentModel": { - "type": "object", - "properties": { - "memberInfo": { - "$ref": "#/components/schemas/MemberInfoModel" - }, - "typedValue": { - "$ref": "#/components/schemas/CustomAttributeTypedArgumentModel" - }, - "memberName": { - "type": "string", - "readOnly": true - }, - "isField": { - "type": "boolean", - "readOnly": true - } - }, - "additionalProperties": false - }, - "CustomAttributeTypedArgumentModel": { - "type": "object", - "properties": { - "argumentType": { - "$ref": "#/components/schemas/TypeModel" - }, - "value": { - "nullable": true - } - }, - "additionalProperties": false - }, "DataTypeCopyModel": { "type": "object", "properties": { @@ -6061,43 +5529,6 @@ }, "additionalProperties": false }, - "DecoderFallbackModel": { - "type": "object", - "properties": { - "maxCharCount": { - "type": "integer", - "format": "int32", - "readOnly": true - } - }, - "additionalProperties": false - }, - "DefaultJsonTypeInfoResolverModel": { - "required": [ - "$type" - ], - "type": "object", - "properties": { - "$type": { - "type": "string" - }, - "modifiers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ActionJsonTypeInfoModel" - }, - "readOnly": true - } - }, - "additionalProperties": false, - "discriminator": { - "propertyName": "$type", - "mapping": { - "DefaultJsonTypeInfoResolver": "#/components/schemas/DefaultJsonTypeInfoResolverModel", - "UmbracoJsonTypeInfoResolver": "#/components/schemas/UmbracoJsonTypeInfoResolverModel" - } - } - }, "DictionaryImportModel": { "type": "object", "properties": { @@ -6322,82 +5753,6 @@ }, "additionalProperties": false }, - "EncoderFallbackModel": { - "type": "object", - "properties": { - "maxCharCount": { - "type": "integer", - "format": "int32", - "readOnly": true - } - }, - "additionalProperties": false - }, - "EncodingModel": { - "type": "object", - "properties": { - "preamble": { - "$ref": "#/components/schemas/ReadOnlySpanByteModel" - }, - "bodyName": { - "type": "string", - "readOnly": true - }, - "encodingName": { - "type": "string", - "readOnly": true - }, - "headerName": { - "type": "string", - "readOnly": true - }, - "webName": { - "type": "string", - "readOnly": true - }, - "windowsCodePage": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "isBrowserDisplay": { - "type": "boolean", - "readOnly": true - }, - "isBrowserSave": { - "type": "boolean", - "readOnly": true - }, - "isMailNewsDisplay": { - "type": "boolean", - "readOnly": true - }, - "isMailNewsSave": { - "type": "boolean", - "readOnly": true - }, - "isSingleByte": { - "type": "boolean", - "readOnly": true - }, - "encoderFallback": { - "$ref": "#/components/schemas/EncoderFallbackModel" - }, - "decoderFallback": { - "$ref": "#/components/schemas/DecoderFallbackModel" - }, - "isReadOnly": { - "type": "boolean", - "readOnly": true - }, - "codePage": { - "type": "integer", - "format": "int32", - "readOnly": true - } - }, - "additionalProperties": false - }, "EntityTreeItemModel": { "type": "object", "allOf": [ @@ -6421,209 +5776,6 @@ }, "additionalProperties": false }, - "EventAttributesModel": { - "enum": [ - "None", - "SpecialName", - "RTSpecialName", - "ReservedMask" - ], - "type": "integer", - "format": "int32" - }, - "EventInfoModel": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "declaringType": { - "$ref": "#/components/schemas/TypeModel" - }, - "reflectedType": { - "$ref": "#/components/schemas/TypeModel" - }, - "module": { - "$ref": "#/components/schemas/ModuleModel" - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "isCollectible": { - "type": "boolean", - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "memberType": { - "$ref": "#/components/schemas/MemberTypesModel" - }, - "attributes": { - "$ref": "#/components/schemas/EventAttributesModel" - }, - "isSpecialName": { - "type": "boolean", - "readOnly": true - }, - "addMethod": { - "$ref": "#/components/schemas/MethodInfoModel" - }, - "removeMethod": { - "$ref": "#/components/schemas/MethodInfoModel" - }, - "raiseMethod": { - "$ref": "#/components/schemas/MethodInfoModel" - }, - "isMulticast": { - "type": "boolean", - "readOnly": true - }, - "eventHandlerType": { - "$ref": "#/components/schemas/TypeModel" - } - }, - "additionalProperties": false - }, - "FieldAttributesModel": { - "enum": [ - "PrivateScope", - "Private", - "FamANDAssem", - "Assembly", - "Family", - "FamORAssem", - "Public", - "FieldAccessMask", - "Static", - "InitOnly", - "Literal", - "NotSerialized", - "HasFieldRVA", - "SpecialName", - "RTSpecialName", - "HasFieldMarshal", - "PinvokeImpl", - "HasDefault", - "ReservedMask" - ], - "type": "integer", - "format": "int32" - }, - "FieldInfoModel": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "declaringType": { - "$ref": "#/components/schemas/TypeModel" - }, - "reflectedType": { - "$ref": "#/components/schemas/TypeModel" - }, - "module": { - "$ref": "#/components/schemas/ModuleModel" - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "isCollectible": { - "type": "boolean", - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "memberType": { - "$ref": "#/components/schemas/MemberTypesModel" - }, - "attributes": { - "$ref": "#/components/schemas/FieldAttributesModel" - }, - "fieldType": { - "$ref": "#/components/schemas/TypeModel" - }, - "isInitOnly": { - "type": "boolean", - "readOnly": true - }, - "isLiteral": { - "type": "boolean", - "readOnly": true - }, - "isNotSerialized": { - "type": "boolean", - "readOnly": true - }, - "isPinvokeImpl": { - "type": "boolean", - "readOnly": true - }, - "isSpecialName": { - "type": "boolean", - "readOnly": true - }, - "isStatic": { - "type": "boolean", - "readOnly": true - }, - "isAssembly": { - "type": "boolean", - "readOnly": true - }, - "isFamily": { - "type": "boolean", - "readOnly": true - }, - "isFamilyAndAssembly": { - "type": "boolean", - "readOnly": true - }, - "isFamilyOrAssembly": { - "type": "boolean", - "readOnly": true - }, - "isPrivate": { - "type": "boolean", - "readOnly": true - }, - "isPublic": { - "type": "boolean", - "readOnly": true - }, - "isSecurityCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecuritySafeCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecurityTransparent": { - "type": "boolean", - "readOnly": true - }, - "fieldHandle": { - "$ref": "#/components/schemas/RuntimeFieldHandleModel" - } - }, - "additionalProperties": false - }, "FieldModel": { "type": "object", "properties": { @@ -6724,20 +5876,6 @@ ], "additionalProperties": false }, - "GenericParameterAttributesModel": { - "enum": [ - "None", - "Covariant", - "Contravariant", - "VarianceMask", - "ReferenceTypeConstraint", - "NotNullableValueTypeConstraint", - "DefaultConstructorConstraint", - "SpecialConstraintMask" - ], - "type": "integer", - "format": "int32" - }, "HealthCheckActionModel": { "type": "object", "properties": { @@ -6929,10 +6067,6 @@ }, "additionalProperties": false }, - "ICustomAttributeProviderModel": { - "type": "object", - "additionalProperties": false - }, "IndexModel": { "required": [ "canRebuild", @@ -7021,160 +6155,6 @@ }, "additionalProperties": false }, - "IntPtrModel": { - "type": "object", - "additionalProperties": false - }, - "JavaScriptEncoderModel": { - "type": "object", - "properties": { - "maxOutputCharactersPerInputCharacter": { - "type": "integer", - "format": "int32", - "readOnly": true - } - }, - "additionalProperties": false - }, - "JsonCommentHandlingModel": { - "enum": [ - "Disallow", - "Skip", - "Allow" - ], - "type": "integer", - "format": "int32" - }, - "JsonConverterObjectModel": { - "type": "object", - "properties": { - "handleNull": { - "type": "boolean", - "readOnly": true - } - }, - "additionalProperties": false - }, - "JsonIgnoreConditionModel": { - "enum": [ - "Never", - "Always", - "WhenWritingDefault", - "WhenWritingNull" - ], - "type": "integer", - "format": "int32" - }, - "JsonNamingPolicyModel": { - "type": "object", - "additionalProperties": false - }, - "JsonNumberHandlingModel": { - "enum": [ - "Strict", - "AllowReadingFromString", - "WriteAsString", - "AllowNamedFloatingPointLiterals" - ], - "type": "integer", - "format": "int32" - }, - "JsonObjectConverterModel": { - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/JsonConverterObjectModel" - } - ], - "additionalProperties": false - }, - "JsonSerializerOptionsModel": { - "type": "object", - "properties": { - "converters": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/JsonObjectConverterModel" - } - ] - }, - "readOnly": true - }, - "typeInfoResolver": { - "oneOf": [ - { - "$ref": "#/components/schemas/UmbracoJsonTypeInfoResolverModel" - } - ], - "nullable": true - }, - "allowTrailingCommas": { - "type": "boolean" - }, - "defaultBufferSize": { - "type": "integer", - "format": "int32" - }, - "encoder": { - "$ref": "#/components/schemas/JavaScriptEncoderModel" - }, - "dictionaryKeyPolicy": { - "$ref": "#/components/schemas/JsonNamingPolicyModel" - }, - "ignoreNullValues": { - "type": "boolean", - "deprecated": true - }, - "defaultIgnoreCondition": { - "$ref": "#/components/schemas/JsonIgnoreConditionModel" - }, - "numberHandling": { - "$ref": "#/components/schemas/JsonNumberHandlingModel" - }, - "ignoreReadOnlyProperties": { - "type": "boolean" - }, - "ignoreReadOnlyFields": { - "type": "boolean" - }, - "includeFields": { - "type": "boolean" - }, - "maxDepth": { - "type": "integer", - "format": "int32" - }, - "propertyNamingPolicy": { - "$ref": "#/components/schemas/JsonNamingPolicyModel" - }, - "propertyNameCaseInsensitive": { - "type": "boolean" - }, - "readCommentHandling": { - "$ref": "#/components/schemas/JsonCommentHandlingModel" - }, - "unknownTypeHandling": { - "$ref": "#/components/schemas/JsonUnknownTypeHandlingModel" - }, - "writeIndented": { - "type": "boolean" - }, - "referenceHandler": { - "$ref": "#/components/schemas/ReferenceHandlerModel" - } - }, - "additionalProperties": false - }, - "JsonUnknownTypeHandlingModel": { - "enum": [ - "JsonElement", - "JsonNode" - ], - "type": "integer", - "format": "int32" - }, "LanguageCreateModel": { "type": "object", "allOf": [ @@ -7231,15 +6211,6 @@ ], "additionalProperties": false }, - "LayoutKindModel": { - "enum": [ - "Sequential", - "Explicit", - "Auto" - ], - "type": "integer", - "format": "int32" - }, "LogLevelModel": { "enum": [ "Verbose", @@ -7326,381 +6297,6 @@ }, "additionalProperties": false }, - "MemberInfoModel": { - "type": "object", - "properties": { - "memberType": { - "$ref": "#/components/schemas/MemberTypesModel" - }, - "name": { - "type": "string", - "readOnly": true - }, - "declaringType": { - "$ref": "#/components/schemas/TypeModel" - }, - "reflectedType": { - "$ref": "#/components/schemas/TypeModel" - }, - "module": { - "$ref": "#/components/schemas/ModuleModel" - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "isCollectible": { - "type": "boolean", - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - } - }, - "additionalProperties": false - }, - "MemberTypesModel": { - "enum": [ - "Constructor", - "Event", - "Field", - "Method", - "Property", - "TypeInfo", - "Custom", - "NestedType", - "All" - ], - "type": "integer", - "format": "int32" - }, - "MethodAttributesModel": { - "enum": [ - "ReuseSlot", - "PrivateScope", - "Private", - "FamANDAssem", - "Assembly", - "Family", - "FamORAssem", - "Public", - "MemberAccessMask", - "UnmanagedExport", - "Static", - "Final", - "Virtual", - "HideBySig", - "NewSlot", - "VtableLayoutMask", - "CheckAccessOnOverride", - "Abstract", - "SpecialName", - "RTSpecialName", - "PinvokeImpl", - "HasSecurity", - "RequireSecObject", - "ReservedMask" - ], - "type": "integer", - "format": "int32" - }, - "MethodBaseModel": { - "type": "object", - "properties": { - "memberType": { - "$ref": "#/components/schemas/MemberTypesModel" - }, - "name": { - "type": "string", - "readOnly": true - }, - "declaringType": { - "$ref": "#/components/schemas/TypeModel" - }, - "reflectedType": { - "$ref": "#/components/schemas/TypeModel" - }, - "module": { - "$ref": "#/components/schemas/ModuleModel" - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "isCollectible": { - "type": "boolean", - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "attributes": { - "$ref": "#/components/schemas/MethodAttributesModel" - }, - "methodImplementationFlags": { - "$ref": "#/components/schemas/MethodImplAttributesModel" - }, - "callingConvention": { - "$ref": "#/components/schemas/CallingConventionsModel" - }, - "isAbstract": { - "type": "boolean", - "readOnly": true - }, - "isConstructor": { - "type": "boolean", - "readOnly": true - }, - "isFinal": { - "type": "boolean", - "readOnly": true - }, - "isHideBySig": { - "type": "boolean", - "readOnly": true - }, - "isSpecialName": { - "type": "boolean", - "readOnly": true - }, - "isStatic": { - "type": "boolean", - "readOnly": true - }, - "isVirtual": { - "type": "boolean", - "readOnly": true - }, - "isAssembly": { - "type": "boolean", - "readOnly": true - }, - "isFamily": { - "type": "boolean", - "readOnly": true - }, - "isFamilyAndAssembly": { - "type": "boolean", - "readOnly": true - }, - "isFamilyOrAssembly": { - "type": "boolean", - "readOnly": true - }, - "isPrivate": { - "type": "boolean", - "readOnly": true - }, - "isPublic": { - "type": "boolean", - "readOnly": true - }, - "isConstructedGenericMethod": { - "type": "boolean", - "readOnly": true - }, - "isGenericMethod": { - "type": "boolean", - "readOnly": true - }, - "isGenericMethodDefinition": { - "type": "boolean", - "readOnly": true - }, - "containsGenericParameters": { - "type": "boolean", - "readOnly": true - }, - "methodHandle": { - "$ref": "#/components/schemas/RuntimeMethodHandleModel" - }, - "isSecurityCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecuritySafeCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecurityTransparent": { - "type": "boolean", - "readOnly": true - } - }, - "additionalProperties": false - }, - "MethodImplAttributesModel": { - "enum": [ - "IL", - "Managed", - "Native", - "OPTIL", - "Runtime", - "CodeTypeMask", - "Unmanaged", - "ManagedMask", - "NoInlining", - "ForwardRef", - "Synchronized", - "NoOptimization", - "PreserveSig", - "AggressiveInlining", - "AggressiveOptimization", - "InternalCall", - "MaxMethodImplVal" - ], - "type": "integer", - "format": "int32" - }, - "MethodInfoModel": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "declaringType": { - "$ref": "#/components/schemas/TypeModel" - }, - "reflectedType": { - "$ref": "#/components/schemas/TypeModel" - }, - "module": { - "$ref": "#/components/schemas/ModuleModel" - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "isCollectible": { - "type": "boolean", - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "attributes": { - "$ref": "#/components/schemas/MethodAttributesModel" - }, - "methodImplementationFlags": { - "$ref": "#/components/schemas/MethodImplAttributesModel" - }, - "callingConvention": { - "$ref": "#/components/schemas/CallingConventionsModel" - }, - "isAbstract": { - "type": "boolean", - "readOnly": true - }, - "isConstructor": { - "type": "boolean", - "readOnly": true - }, - "isFinal": { - "type": "boolean", - "readOnly": true - }, - "isHideBySig": { - "type": "boolean", - "readOnly": true - }, - "isSpecialName": { - "type": "boolean", - "readOnly": true - }, - "isStatic": { - "type": "boolean", - "readOnly": true - }, - "isVirtual": { - "type": "boolean", - "readOnly": true - }, - "isAssembly": { - "type": "boolean", - "readOnly": true - }, - "isFamily": { - "type": "boolean", - "readOnly": true - }, - "isFamilyAndAssembly": { - "type": "boolean", - "readOnly": true - }, - "isFamilyOrAssembly": { - "type": "boolean", - "readOnly": true - }, - "isPrivate": { - "type": "boolean", - "readOnly": true - }, - "isPublic": { - "type": "boolean", - "readOnly": true - }, - "isConstructedGenericMethod": { - "type": "boolean", - "readOnly": true - }, - "isGenericMethod": { - "type": "boolean", - "readOnly": true - }, - "isGenericMethodDefinition": { - "type": "boolean", - "readOnly": true - }, - "containsGenericParameters": { - "type": "boolean", - "readOnly": true - }, - "methodHandle": { - "$ref": "#/components/schemas/RuntimeMethodHandleModel" - }, - "isSecurityCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecuritySafeCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecurityTransparent": { - "type": "boolean", - "readOnly": true - }, - "memberType": { - "$ref": "#/components/schemas/MemberTypesModel" - }, - "returnParameter": { - "$ref": "#/components/schemas/ParameterInfoModel" - }, - "returnType": { - "$ref": "#/components/schemas/TypeModel" - }, - "returnTypeCustomAttributes": { - "$ref": "#/components/schemas/ICustomAttributeProviderModel" - } - }, - "additionalProperties": false - }, "ModelsBuilderModel": { "type": "object", "properties": { @@ -7741,129 +6337,6 @@ "type": "integer", "format": "int32" }, - "ModuleHandleModel": { - "type": "object", - "properties": { - "mdStreamVersion": { - "type": "integer", - "format": "int32", - "readOnly": true - } - }, - "additionalProperties": false - }, - "ModuleModel": { - "type": "object", - "properties": { - "assembly": { - "$ref": "#/components/schemas/AssemblyModel" - }, - "fullyQualifiedName": { - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true - }, - "mdStreamVersion": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "moduleVersionId": { - "type": "string", - "format": "uuid", - "readOnly": true - }, - "scopeName": { - "type": "string", - "readOnly": true - }, - "moduleHandle": { - "$ref": "#/components/schemas/ModuleHandleModel" - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - } - }, - "additionalProperties": false - }, - "NamedSystemTextJsonOutputFormatterModel": { - "required": [ - "$type" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/SystemTextJsonOutputFormatterModel" - } - ], - "properties": { - "$type": { - "type": "string" - } - }, - "additionalProperties": false, - "discriminator": { - "propertyName": "$type", - "mapping": { - "NamedSystemTextJsonOutputFormatter": "#/components/schemas/NamedSystemTextJsonOutputFormatterModel" - } - } - }, - "NewtonsoftJsonOutputFormatterModel": { - "required": [ - "$type" - ], - "type": "object", - "properties": { - "$type": { - "type": "string" - }, - "supportedMediaTypes": { - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true - }, - "supportedEncodings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/EncodingModel" - }, - "readOnly": true - } - }, - "additionalProperties": false, - "discriminator": { - "propertyName": "$type", - "mapping": { - "NewtonsoftJsonOutputFormatter": "#/components/schemas/NewtonsoftJsonOutputFormatterModel", - "AngularJsonMediaTypeFormatter": "#/components/schemas/AngularJsonMediaTypeFormatterModel" - } - } - }, - "NotFoundResultModel": { - "type": "object", - "properties": { - "statusCode": { - "type": "integer", - "format": "int32" - } - }, - "additionalProperties": false - }, "OkResultModel": { "type": "object", "properties": { @@ -8506,92 +6979,6 @@ }, "additionalProperties": false }, - "ParameterAttributesModel": { - "enum": [ - "None", - "In", - "Out", - "Lcid", - "Retval", - "Optional", - "HasDefault", - "HasFieldMarshal", - "Reserved3", - "Reserved4", - "ReservedMask" - ], - "type": "integer", - "format": "int32" - }, - "ParameterInfoModel": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/components/schemas/ParameterAttributesModel" - }, - "member": { - "$ref": "#/components/schemas/MemberInfoModel" - }, - "name": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "parameterType": { - "$ref": "#/components/schemas/TypeModel" - }, - "position": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "isIn": { - "type": "boolean", - "readOnly": true - }, - "isLcid": { - "type": "boolean", - "readOnly": true - }, - "isOptional": { - "type": "boolean", - "readOnly": true - }, - "isOut": { - "type": "boolean", - "readOnly": true - }, - "isRetval": { - "type": "boolean", - "readOnly": true - }, - "defaultValue": { - "nullable": true, - "readOnly": true - }, - "rawDefaultValue": { - "nullable": true, - "readOnly": true - }, - "hasDefaultValue": { - "type": "boolean", - "readOnly": true - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - } - }, - "additionalProperties": false - }, "ProblemDetailsModel": { "type": "object", "properties": { @@ -8628,97 +7015,6 @@ }, "additionalProperties": false }, - "PropertyAttributesModel": { - "enum": [ - "None", - "SpecialName", - "RTSpecialName", - "HasDefault", - "Reserved2", - "Reserved3", - "Reserved4", - "ReservedMask" - ], - "type": "integer", - "format": "int32" - }, - "PropertyInfoModel": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "declaringType": { - "$ref": "#/components/schemas/TypeModel" - }, - "reflectedType": { - "$ref": "#/components/schemas/TypeModel" - }, - "module": { - "$ref": "#/components/schemas/ModuleModel" - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "isCollectible": { - "type": "boolean", - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "memberType": { - "$ref": "#/components/schemas/MemberTypesModel" - }, - "propertyType": { - "$ref": "#/components/schemas/TypeModel" - }, - "attributes": { - "$ref": "#/components/schemas/PropertyAttributesModel" - }, - "isSpecialName": { - "type": "boolean", - "readOnly": true - }, - "canRead": { - "type": "boolean", - "readOnly": true - }, - "canWrite": { - "type": "boolean", - "readOnly": true - }, - "getMethod": { - "$ref": "#/components/schemas/MethodInfoModel" - }, - "setMethod": { - "$ref": "#/components/schemas/MethodInfoModel" - } - }, - "additionalProperties": false - }, - "ReadOnlySpanByteModel": { - "type": "object", - "properties": { - "length": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "isEmpty": { - "type": "boolean", - "readOnly": true - } - }, - "additionalProperties": false - }, "RecycleBinItemModel": { "type": "object", "properties": { @@ -8797,10 +7093,6 @@ }, "additionalProperties": false }, - "ReferenceHandlerModel": { - "type": "object", - "additionalProperties": false - }, "RelationItemModel": { "type": "object", "properties": { @@ -8871,15 +7163,6 @@ }, "additionalProperties": false }, - "RuntimeFieldHandleModel": { - "type": "object", - "properties": { - "value": { - "$ref": "#/components/schemas/IntPtrModel" - } - }, - "additionalProperties": false - }, "RuntimeLevelModel": { "enum": [ "Unknown", @@ -8892,24 +7175,6 @@ "type": "integer", "format": "int32" }, - "RuntimeMethodHandleModel": { - "type": "object", - "properties": { - "value": { - "$ref": "#/components/schemas/IntPtrModel" - } - }, - "additionalProperties": false - }, - "RuntimeTypeHandleModel": { - "type": "object", - "properties": { - "value": { - "$ref": "#/components/schemas/IntPtrModel" - } - }, - "additionalProperties": false - }, "SavedLogSearchModel": { "type": "object", "properties": { @@ -8959,15 +7224,6 @@ }, "additionalProperties": false }, - "SecurityRuleSetModel": { - "enum": [ - "None", - "Level1", - "Level2" - ], - "type": "integer", - "format": "int32" - }, "ServerStatusModel": { "type": "object", "properties": { @@ -8987,54 +7243,6 @@ "type": "integer", "format": "int32" }, - "StructLayoutAttributeModel": { - "type": "object", - "properties": { - "typeId": { - "readOnly": true - }, - "value": { - "$ref": "#/components/schemas/LayoutKindModel" - } - }, - "additionalProperties": false - }, - "SystemTextJsonOutputFormatterModel": { - "required": [ - "$type" - ], - "type": "object", - "properties": { - "$type": { - "type": "string" - }, - "supportedMediaTypes": { - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true - }, - "supportedEncodings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/EncodingModel" - }, - "readOnly": true - }, - "serializerOptions": { - "$ref": "#/components/schemas/JsonSerializerOptionsModel" - } - }, - "additionalProperties": false, - "discriminator": { - "propertyName": "$type", - "mapping": { - "SystemTextJsonOutputFormatter": "#/components/schemas/SystemTextJsonOutputFormatterModel", - "NamedSystemTextJsonOutputFormatter": "#/components/schemas/NamedSystemTextJsonOutputFormatterModel" - } - } - }, "TelemetryLevelModel": { "enum": [ "Minimal", @@ -9302,708 +7510,6 @@ }, "additionalProperties": false }, - "TypeAttributesModel": { - "enum": [ - "NotPublic", - "AutoLayout", - "AnsiClass", - "Class", - "Public", - "NestedPublic", - "NestedPrivate", - "NestedFamily", - "NestedAssembly", - "NestedFamANDAssem", - "NestedFamORAssem", - "VisibilityMask", - "SequentialLayout", - "ExplicitLayout", - "LayoutMask", - "Interface", - "ClassSemanticsMask", - "Abstract", - "Sealed", - "SpecialName", - "RTSpecialName", - "Import", - "Serializable", - "WindowsRuntime", - "UnicodeClass", - "AutoClass", - "CustomFormatClass", - "StringFormatMask", - "HasSecurity", - "ReservedMask", - "BeforeFieldInit", - "CustomFormatMask" - ], - "type": "integer", - "format": "int32" - }, - "TypeInfoModel": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "isCollectible": { - "type": "boolean", - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "isInterface": { - "type": "boolean", - "readOnly": true - }, - "memberType": { - "$ref": "#/components/schemas/MemberTypesModel" - }, - "namespace": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "assemblyQualifiedName": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "fullName": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "assembly": { - "$ref": "#/components/schemas/AssemblyModel" - }, - "module": { - "$ref": "#/components/schemas/ModuleModel" - }, - "isNested": { - "type": "boolean", - "readOnly": true - }, - "declaringType": { - "$ref": "#/components/schemas/TypeModel" - }, - "declaringMethod": { - "$ref": "#/components/schemas/MethodBaseModel" - }, - "reflectedType": { - "$ref": "#/components/schemas/TypeModel" - }, - "underlyingSystemType": { - "$ref": "#/components/schemas/TypeModel" - }, - "isTypeDefinition": { - "type": "boolean", - "readOnly": true - }, - "isArray": { - "type": "boolean", - "readOnly": true - }, - "isByRef": { - "type": "boolean", - "readOnly": true - }, - "isPointer": { - "type": "boolean", - "readOnly": true - }, - "isConstructedGenericType": { - "type": "boolean", - "readOnly": true - }, - "isGenericParameter": { - "type": "boolean", - "readOnly": true - }, - "isGenericTypeParameter": { - "type": "boolean", - "readOnly": true - }, - "isGenericMethodParameter": { - "type": "boolean", - "readOnly": true - }, - "isGenericType": { - "type": "boolean", - "readOnly": true - }, - "isGenericTypeDefinition": { - "type": "boolean", - "readOnly": true - }, - "isSZArray": { - "type": "boolean", - "readOnly": true - }, - "isVariableBoundArray": { - "type": "boolean", - "readOnly": true - }, - "isByRefLike": { - "type": "boolean", - "readOnly": true - }, - "hasElementType": { - "type": "boolean", - "readOnly": true - }, - "genericTypeArguments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TypeModel" - }, - "readOnly": true - }, - "genericParameterPosition": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "genericParameterAttributes": { - "$ref": "#/components/schemas/GenericParameterAttributesModel" - }, - "attributes": { - "$ref": "#/components/schemas/TypeAttributesModel" - }, - "isAbstract": { - "type": "boolean", - "readOnly": true - }, - "isImport": { - "type": "boolean", - "readOnly": true - }, - "isSealed": { - "type": "boolean", - "readOnly": true - }, - "isSpecialName": { - "type": "boolean", - "readOnly": true - }, - "isClass": { - "type": "boolean", - "readOnly": true - }, - "isNestedAssembly": { - "type": "boolean", - "readOnly": true - }, - "isNestedFamANDAssem": { - "type": "boolean", - "readOnly": true - }, - "isNestedFamily": { - "type": "boolean", - "readOnly": true - }, - "isNestedFamORAssem": { - "type": "boolean", - "readOnly": true - }, - "isNestedPrivate": { - "type": "boolean", - "readOnly": true - }, - "isNestedPublic": { - "type": "boolean", - "readOnly": true - }, - "isNotPublic": { - "type": "boolean", - "readOnly": true - }, - "isPublic": { - "type": "boolean", - "readOnly": true - }, - "isAutoLayout": { - "type": "boolean", - "readOnly": true - }, - "isExplicitLayout": { - "type": "boolean", - "readOnly": true - }, - "isLayoutSequential": { - "type": "boolean", - "readOnly": true - }, - "isAnsiClass": { - "type": "boolean", - "readOnly": true - }, - "isAutoClass": { - "type": "boolean", - "readOnly": true - }, - "isUnicodeClass": { - "type": "boolean", - "readOnly": true - }, - "isCOMObject": { - "type": "boolean", - "readOnly": true - }, - "isContextful": { - "type": "boolean", - "readOnly": true - }, - "isEnum": { - "type": "boolean", - "readOnly": true - }, - "isMarshalByRef": { - "type": "boolean", - "readOnly": true - }, - "isPrimitive": { - "type": "boolean", - "readOnly": true - }, - "isValueType": { - "type": "boolean", - "readOnly": true - }, - "isSignatureType": { - "type": "boolean", - "readOnly": true - }, - "isSecurityCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecuritySafeCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecurityTransparent": { - "type": "boolean", - "readOnly": true - }, - "structLayoutAttribute": { - "$ref": "#/components/schemas/StructLayoutAttributeModel" - }, - "typeInitializer": { - "$ref": "#/components/schemas/ConstructorInfoModel" - }, - "typeHandle": { - "$ref": "#/components/schemas/RuntimeTypeHandleModel" - }, - "guid": { - "type": "string", - "format": "uuid", - "readOnly": true - }, - "baseType": { - "$ref": "#/components/schemas/TypeModel" - }, - "isSerializable": { - "type": "boolean", - "readOnly": true - }, - "containsGenericParameters": { - "type": "boolean", - "readOnly": true - }, - "isVisible": { - "type": "boolean", - "readOnly": true - }, - "genericTypeParameters": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TypeModel" - }, - "readOnly": true - }, - "declaredConstructors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ConstructorInfoModel" - }, - "readOnly": true - }, - "declaredEvents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/EventInfoModel" - }, - "readOnly": true - }, - "declaredFields": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FieldInfoModel" - }, - "readOnly": true - }, - "declaredMembers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MemberInfoModel" - }, - "readOnly": true - }, - "declaredMethods": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MethodInfoModel" - }, - "readOnly": true - }, - "declaredNestedTypes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TypeInfoModel" - }, - "readOnly": true - }, - "declaredProperties": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PropertyInfoModel" - }, - "readOnly": true - }, - "implementedInterfaces": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TypeModel" - }, - "readOnly": true - } - }, - "additionalProperties": false - }, - "TypeModel": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "customAttributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomAttributeDataModel" - }, - "readOnly": true - }, - "isCollectible": { - "type": "boolean", - "readOnly": true - }, - "metadataToken": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "isInterface": { - "type": "boolean", - "readOnly": true - }, - "memberType": { - "$ref": "#/components/schemas/MemberTypesModel" - }, - "namespace": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "assemblyQualifiedName": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "fullName": { - "type": "string", - "nullable": true, - "readOnly": true - }, - "assembly": { - "$ref": "#/components/schemas/AssemblyModel" - }, - "module": { - "$ref": "#/components/schemas/ModuleModel" - }, - "isNested": { - "type": "boolean", - "readOnly": true - }, - "declaringType": { - "$ref": "#/components/schemas/TypeModel" - }, - "declaringMethod": { - "$ref": "#/components/schemas/MethodBaseModel" - }, - "reflectedType": { - "$ref": "#/components/schemas/TypeModel" - }, - "underlyingSystemType": { - "$ref": "#/components/schemas/TypeModel" - }, - "isTypeDefinition": { - "type": "boolean", - "readOnly": true - }, - "isArray": { - "type": "boolean", - "readOnly": true - }, - "isByRef": { - "type": "boolean", - "readOnly": true - }, - "isPointer": { - "type": "boolean", - "readOnly": true - }, - "isConstructedGenericType": { - "type": "boolean", - "readOnly": true - }, - "isGenericParameter": { - "type": "boolean", - "readOnly": true - }, - "isGenericTypeParameter": { - "type": "boolean", - "readOnly": true - }, - "isGenericMethodParameter": { - "type": "boolean", - "readOnly": true - }, - "isGenericType": { - "type": "boolean", - "readOnly": true - }, - "isGenericTypeDefinition": { - "type": "boolean", - "readOnly": true - }, - "isSZArray": { - "type": "boolean", - "readOnly": true - }, - "isVariableBoundArray": { - "type": "boolean", - "readOnly": true - }, - "isByRefLike": { - "type": "boolean", - "readOnly": true - }, - "hasElementType": { - "type": "boolean", - "readOnly": true - }, - "genericTypeArguments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TypeModel" - }, - "readOnly": true - }, - "genericParameterPosition": { - "type": "integer", - "format": "int32", - "readOnly": true - }, - "genericParameterAttributes": { - "$ref": "#/components/schemas/GenericParameterAttributesModel" - }, - "attributes": { - "$ref": "#/components/schemas/TypeAttributesModel" - }, - "isAbstract": { - "type": "boolean", - "readOnly": true - }, - "isImport": { - "type": "boolean", - "readOnly": true - }, - "isSealed": { - "type": "boolean", - "readOnly": true - }, - "isSpecialName": { - "type": "boolean", - "readOnly": true - }, - "isClass": { - "type": "boolean", - "readOnly": true - }, - "isNestedAssembly": { - "type": "boolean", - "readOnly": true - }, - "isNestedFamANDAssem": { - "type": "boolean", - "readOnly": true - }, - "isNestedFamily": { - "type": "boolean", - "readOnly": true - }, - "isNestedFamORAssem": { - "type": "boolean", - "readOnly": true - }, - "isNestedPrivate": { - "type": "boolean", - "readOnly": true - }, - "isNestedPublic": { - "type": "boolean", - "readOnly": true - }, - "isNotPublic": { - "type": "boolean", - "readOnly": true - }, - "isPublic": { - "type": "boolean", - "readOnly": true - }, - "isAutoLayout": { - "type": "boolean", - "readOnly": true - }, - "isExplicitLayout": { - "type": "boolean", - "readOnly": true - }, - "isLayoutSequential": { - "type": "boolean", - "readOnly": true - }, - "isAnsiClass": { - "type": "boolean", - "readOnly": true - }, - "isAutoClass": { - "type": "boolean", - "readOnly": true - }, - "isUnicodeClass": { - "type": "boolean", - "readOnly": true - }, - "isCOMObject": { - "type": "boolean", - "readOnly": true - }, - "isContextful": { - "type": "boolean", - "readOnly": true - }, - "isEnum": { - "type": "boolean", - "readOnly": true - }, - "isMarshalByRef": { - "type": "boolean", - "readOnly": true - }, - "isPrimitive": { - "type": "boolean", - "readOnly": true - }, - "isValueType": { - "type": "boolean", - "readOnly": true - }, - "isSignatureType": { - "type": "boolean", - "readOnly": true - }, - "isSecurityCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecuritySafeCritical": { - "type": "boolean", - "readOnly": true - }, - "isSecurityTransparent": { - "type": "boolean", - "readOnly": true - }, - "structLayoutAttribute": { - "$ref": "#/components/schemas/StructLayoutAttributeModel" - }, - "typeInitializer": { - "$ref": "#/components/schemas/ConstructorInfoModel" - }, - "typeHandle": { - "$ref": "#/components/schemas/RuntimeTypeHandleModel" - }, - "guid": { - "type": "string", - "format": "uuid", - "readOnly": true - }, - "baseType": { - "$ref": "#/components/schemas/TypeModel" - }, - "isSerializable": { - "type": "boolean", - "readOnly": true - }, - "containsGenericParameters": { - "type": "boolean", - "readOnly": true - }, - "isVisible": { - "type": "boolean", - "readOnly": true - } - }, - "additionalProperties": false - }, - "UmbracoJsonTypeInfoResolverModel": { - "required": [ - "$type" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/DefaultJsonTypeInfoResolverModel" - } - ], - "properties": { - "$type": { - "type": "string" - } - }, - "additionalProperties": false, - "discriminator": { - "propertyName": "$type", - "mapping": { - "UmbracoJsonTypeInfoResolver": "#/components/schemas/UmbracoJsonTypeInfoResolverModel" - } - } - }, "UpgradeSettingsModel": { "type": "object", "properties": { diff --git a/src/Umbraco.Cms.Api.Management/OpenApi/ConfigureUmbracoSwaggerGenOptions.cs b/src/Umbraco.Cms.Api.Management/OpenApi/ConfigureUmbracoSwaggerGenOptions.cs index 5ad1edec4c..937471e891 100644 --- a/src/Umbraco.Cms.Api.Management/OpenApi/ConfigureUmbracoSwaggerGenOptions.cs +++ b/src/Umbraco.Cms.Api.Management/OpenApi/ConfigureUmbracoSwaggerGenOptions.cs @@ -72,6 +72,7 @@ internal sealed class ConfigureUmbracoSwaggerGenOptions : IConfigureOptions(); swaggerGenOptions.UseOneOfForPolymorphism(); swaggerGenOptions.UseAllOfForInheritance(); swaggerGenOptions.SelectSubTypesUsing(_umbracoJsonTypeInfoResolver.FindSubTypes); diff --git a/src/Umbraco.Cms.Api.Management/OpenApi/ReponseHeaderOperationFilter.cs b/src/Umbraco.Cms.Api.Management/OpenApi/ReponseHeaderOperationFilter.cs new file mode 100644 index 0000000000..daddedafac --- /dev/null +++ b/src/Umbraco.Cms.Api.Management/OpenApi/ReponseHeaderOperationFilter.cs @@ -0,0 +1,36 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.OpenApi.Models; +using Swashbuckle.AspNetCore.SwaggerGen; + +namespace Umbraco.Cms.Api.Management.OpenApi; + +internal class ReponseHeaderOperationFilter : IOperationFilter +{ + public void Apply(OpenApiOperation operation, OperationFilterContext context) + { + foreach ((var key, OpenApiResponse? value) in operation.Responses) + { + switch (int.Parse(key)) + { + case StatusCodes.Status201Created: + SetHeader(value, "Location", "Location of the newly created resource", "string", "uri"); + break; + } + } + } + + private void SetHeader(OpenApiResponse value, string headerName, string description, string type, string format) + { + + if (value.Headers is null) + { + value.Headers = new Dictionary(); + } + + value.Headers[headerName] = new OpenApiHeader() + { + Description = description, + Schema = new OpenApiSchema { Description = description, Type = type, Format = format } + }; + } +} diff --git a/src/Umbraco.Cms.Api.Management/Umbraco.Cms.Api.Management.csproj b/src/Umbraco.Cms.Api.Management/Umbraco.Cms.Api.Management.csproj index 38c3bedc03..28e15c20c7 100644 --- a/src/Umbraco.Cms.Api.Management/Umbraco.Cms.Api.Management.csproj +++ b/src/Umbraco.Cms.Api.Management/Umbraco.Cms.Api.Management.csproj @@ -13,8 +13,8 @@ - - + + diff --git a/src/Umbraco.Core/Constants-System.cs b/src/Umbraco.Core/Constants-System.cs index 43de01995b..24820e58b4 100644 --- a/src/Umbraco.Core/Constants-System.cs +++ b/src/Umbraco.Core/Constants-System.cs @@ -18,6 +18,11 @@ public static partial class Constants /// Use this instead of re-creating the string everywhere. public const string RootString = "-1"; + /// + /// The GUID identifier for global system root node. + /// + public static readonly Guid? RootKey = null; + /// /// The integer identifier for content's recycle bin. /// diff --git a/src/Umbraco.New.Cms.Infrastructure/Umbraco.New.Cms.Infrastructure.csproj b/src/Umbraco.New.Cms.Infrastructure/Umbraco.New.Cms.Infrastructure.csproj index 82159079a4..4038651a0a 100644 --- a/src/Umbraco.New.Cms.Infrastructure/Umbraco.New.Cms.Infrastructure.csproj +++ b/src/Umbraco.New.Cms.Infrastructure/Umbraco.New.Cms.Infrastructure.csproj @@ -12,6 +12,6 @@ - + diff --git a/src/Umbraco.Web.UI.New.Client b/src/Umbraco.Web.UI.New.Client index 6a7979d95a..7f380e2591 160000 --- a/src/Umbraco.Web.UI.New.Client +++ b/src/Umbraco.Web.UI.New.Client @@ -1 +1 @@ -Subproject commit 6a7979d95a5014543a6dc555cceaaddb43dd35b4 +Subproject commit 7f380e2591cf3a9c34a8995a2ddf040ee3a4a0f6