From dc9c28db9a165203d90719c0f5fd7da14a28d018 Mon Sep 17 00:00:00 2001 From: Elitsa Date: Tue, 16 Apr 2024 14:43:10 +0200 Subject: [PATCH] Added missing endpoints --- src/Umbraco.Cms.Api.Management/OpenApi.json | 329 +++++++++++++++++++- 1 file changed, 323 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Cms.Api.Management/OpenApi.json b/src/Umbraco.Cms.Api.Management/OpenApi.json index 3544bf9cd7..676bc29b5d 100644 --- a/src/Umbraco.Cms.Api.Management/OpenApi.json +++ b/src/Umbraco.Cms.Api.Management/OpenApi.json @@ -4270,6 +4270,54 @@ ] } }, + "/umbraco/management/api/v1/tree/document-blueprint/ancestors": { + "get": { + "tags": [ + "Document Blueprint" + ], + "operationId": "GetTreeDocumentBlueprintAncestors", + "parameters": [ + { + "name": "descendantId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/DocumentBlueprintTreeItemResponseModel" + } + ] + } + } + } + } + }, + "401": { + "description": "The resource is protected and requires an authentication token" + }, + "403": { + "description": "The authenticated user do not have access to this resource" + } + }, + "security": [ + { + "Backoffice User": [ ] + } + ] + } + }, "/umbraco/management/api/v1/tree/document-blueprint/children": { "get": { "tags": [ @@ -4911,6 +4959,84 @@ ] } }, + "/umbraco/management/api/v1/document-type/{id}/blueprint": { + "get": { + "tags": [ + "Document Type" + ], + "operationId": "GetDocumentTypeByIdBlueprint", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "skip", + "in": "query", + "schema": { + "type": "integer", + "format": "int32", + "default": 0 + } + }, + { + "name": "take", + "in": "query", + "schema": { + "type": "integer", + "format": "int32", + "default": 100 + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "$ref": "#/components/schemas/PagedDocumentTypeBlueprintItemResponseModel" + } + ] + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProblemDetails" + } + ] + } + } + } + }, + "401": { + "description": "The resource is protected and requires an authentication token" + }, + "403": { + "description": "The authenticated user do not have access to this resource" + } + }, + "security": [ + { + "Backoffice User": [ ] + } + ] + } + }, "/umbraco/management/api/v1/document-type/{id}/composition-references": { "get": { "tags": [ @@ -9276,6 +9402,58 @@ ] } }, + "/umbraco/management/api/v1/document/urls": { + "get": { + "tags": [ + "Document" + ], + "operationId": "GetDocumentUrls", + "parameters": [ + { + "name": "id", + "in": "query", + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/DocumentUrlInfoResponseModel" + } + ] + } + } + } + } + }, + "401": { + "description": "The resource is protected and requires an authentication token" + }, + "403": { + "description": "The authenticated user do not have access to this resource" + } + }, + "security": [ + { + "Backoffice User": [ ] + } + ] + } + }, "/umbraco/management/api/v1/document/validate": { "post": { "tags": [ @@ -15717,6 +15895,58 @@ ] } }, + "/umbraco/management/api/v1/media/urls": { + "get": { + "tags": [ + "Media" + ], + "operationId": "GetMediaUrls", + "parameters": [ + { + "name": "id", + "in": "query", + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/MediaUrlInfoResponseModel" + } + ] + } + } + } + } + }, + "401": { + "description": "The resource is protected and requires an authentication token" + }, + "403": { + "description": "The authenticated user do not have access to this resource" + } + }, + "security": [ + { + "Backoffice User": [ ] + } + ] + } + }, "/umbraco/management/api/v1/media/validate": { "post": { "tags": [ @@ -23377,6 +23607,9 @@ }, "401": { "description": "The resource is protected and requires an authentication token" + }, + "403": { + "description": "The authenticated user do not have access to this resource" } }, "security": [ @@ -34254,8 +34487,7 @@ "required": [ "canBeChanged", "documentListViewId", - "mediaListViewId", - "memberListViewId" + "mediaListViewId" ], "type": "object", "properties": { @@ -34269,10 +34501,6 @@ "mediaListViewId": { "type": "string", "format": "uuid" - }, - "memberListViewId": { - "type": "string", - "format": "uuid" } }, "additionalProperties": false @@ -34942,6 +35170,23 @@ }, "additionalProperties": false }, + "DocumentTypeBlueprintItemResponseModel": { + "required": [ + "id", + "name" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false + }, "DocumentTypeCleanupModel": { "required": [ "preventCleanup" @@ -35440,6 +35685,30 @@ }, "additionalProperties": false }, + "DocumentUrlInfoResponseModel": { + "required": [ + "id", + "urlInfos" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "urlInfos": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/DocumentUrlInfoModel" + } + ] + } + } + }, + "additionalProperties": false + }, "DocumentValueModel": { "required": [ "alias" @@ -37297,6 +37566,30 @@ }, "additionalProperties": false }, + "MediaUrlInfoResponseModel": { + "required": [ + "id", + "urlInfos" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "urlInfos": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/MediaUrlInfoModel" + } + ] + } + } + }, + "additionalProperties": false + }, "MediaValueModel": { "required": [ "alias" @@ -38626,6 +38919,30 @@ }, "additionalProperties": false }, + "PagedDocumentTypeBlueprintItemResponseModel": { + "required": [ + "items", + "total" + ], + "type": "object", + "properties": { + "total": { + "type": "integer", + "format": "int64" + }, + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/DocumentTypeBlueprintItemResponseModel" + } + ] + } + } + }, + "additionalProperties": false + }, "PagedDocumentTypeTreeItemResponseModel": { "required": [ "items",