Make editor updates asynchronous with unified preview API
This commit is contained in:
@@ -253,6 +253,111 @@
|
||||
"title": "Create",
|
||||
"type": "object"
|
||||
},
|
||||
"EditorUpdate": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"etag": {
|
||||
"maxLength": 80,
|
||||
"minLength": 1,
|
||||
"title": "Etag",
|
||||
"type": "string"
|
||||
},
|
||||
"operations": {
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"discriminator": {
|
||||
"mapping": {
|
||||
"add": "#/components/schemas/Add",
|
||||
"block": "#/components/schemas/BlockAction",
|
||||
"delete": "#/components/schemas/BlockAction",
|
||||
"duplicate": "#/components/schemas/BlockAction",
|
||||
"entry_fields": "#/components/schemas/EntryFields",
|
||||
"metadata": "#/components/schemas/Metadata",
|
||||
"move": "#/components/schemas/Move",
|
||||
"toggle": "#/components/schemas/BlockAction"
|
||||
},
|
||||
"propertyName": "type"
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Metadata"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/EntryFields"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/BlockAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/Add"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/Move"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/InspectorEdit"
|
||||
}
|
||||
]
|
||||
},
|
||||
"maxItems": 100,
|
||||
"title": "Operations",
|
||||
"type": "array"
|
||||
},
|
||||
"revision": {
|
||||
"default": 0,
|
||||
"minimum": 0.0,
|
||||
"title": "Revision",
|
||||
"type": "integer"
|
||||
},
|
||||
"source": {
|
||||
"maxLength": 524288,
|
||||
"title": "Source",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"source",
|
||||
"etag"
|
||||
],
|
||||
"title": "EditorUpdate",
|
||||
"type": "object"
|
||||
},
|
||||
"EditorUpdateResult": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"preview": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Preview"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"preview_error": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ErrorBody"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"snapshot": {
|
||||
"$ref": "#/components/schemas/Snapshot"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"snapshot"
|
||||
],
|
||||
"title": "EditorUpdateResult",
|
||||
"type": "object"
|
||||
},
|
||||
"Entries": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
@@ -487,6 +592,32 @@
|
||||
"title": "ErrorEnvelope",
|
||||
"type": "object"
|
||||
},
|
||||
"InspectorEdit": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"fields": {
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"title": "Fields",
|
||||
"type": "object"
|
||||
},
|
||||
"type": {
|
||||
"const": "inspector",
|
||||
"title": "Type",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"fields"
|
||||
],
|
||||
"title": "InspectorEdit",
|
||||
"type": "object"
|
||||
},
|
||||
"IssueDTO": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
@@ -2349,6 +2480,149 @@
|
||||
"summary": "Entry Transform"
|
||||
}
|
||||
},
|
||||
"/admin/api/v1/collections/{collection}/entries/{identity}/update": {
|
||||
"post": {
|
||||
"operationId": "entry_update_admin_api_v1_collections__collection__entries__identity__update_post",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "collection",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Collection",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "identity",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Identity",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/EditorUpdate"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/EditorUpdateResult"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"400": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Bad Request"
|
||||
},
|
||||
"401": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Unauthorized"
|
||||
},
|
||||
"403": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Forbidden"
|
||||
},
|
||||
"404": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Not Found"
|
||||
},
|
||||
"405": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Method Not Allowed"
|
||||
},
|
||||
"409": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Conflict"
|
||||
},
|
||||
"413": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Request Entity Too Large"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Unprocessable Entity"
|
||||
},
|
||||
"500": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Internal Server Error"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"InternalUiSession": []
|
||||
}
|
||||
],
|
||||
"summary": "Entry Update"
|
||||
}
|
||||
},
|
||||
"/admin/api/v1/collections/{collection}/entries/{identity}/validate": {
|
||||
"post": {
|
||||
"operationId": "entry_validate_admin_api_v1_collections__collection__entries__identity__validate_post",
|
||||
@@ -3054,6 +3328,149 @@
|
||||
"summary": "Entry Transform"
|
||||
}
|
||||
},
|
||||
"/admin/api/v1/editor/entries/{collection}/{identity}/update": {
|
||||
"post": {
|
||||
"operationId": "entry_update_admin_api_v1_editor_entries__collection___identity__update_post",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "collection",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Collection",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "identity",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Identity",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/EditorUpdate"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/EditorUpdateResult"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"400": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Bad Request"
|
||||
},
|
||||
"401": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Unauthorized"
|
||||
},
|
||||
"403": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Forbidden"
|
||||
},
|
||||
"404": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Not Found"
|
||||
},
|
||||
"405": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Method Not Allowed"
|
||||
},
|
||||
"409": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Conflict"
|
||||
},
|
||||
"413": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Request Entity Too Large"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Unprocessable Entity"
|
||||
},
|
||||
"500": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Internal Server Error"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"InternalUiSession": []
|
||||
}
|
||||
],
|
||||
"summary": "Entry Update"
|
||||
}
|
||||
},
|
||||
"/admin/api/v1/editor/entries/{collection}/{identity}/validate": {
|
||||
"post": {
|
||||
"operationId": "entry_validate_admin_api_v1_editor_entries__collection___identity__validate_post",
|
||||
@@ -3723,6 +4140,140 @@
|
||||
"summary": "Page Transform"
|
||||
}
|
||||
},
|
||||
"/admin/api/v1/editor/pages/{identity}/update": {
|
||||
"post": {
|
||||
"operationId": "page_update_admin_api_v1_editor_pages__identity__update_post",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "identity",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Identity",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/EditorUpdate"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/EditorUpdateResult"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"400": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Bad Request"
|
||||
},
|
||||
"401": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Unauthorized"
|
||||
},
|
||||
"403": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Forbidden"
|
||||
},
|
||||
"404": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Not Found"
|
||||
},
|
||||
"405": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Method Not Allowed"
|
||||
},
|
||||
"409": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Conflict"
|
||||
},
|
||||
"413": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Request Entity Too Large"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Unprocessable Entity"
|
||||
},
|
||||
"500": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Internal Server Error"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"InternalUiSession": []
|
||||
}
|
||||
],
|
||||
"summary": "Page Update"
|
||||
}
|
||||
},
|
||||
"/admin/api/v1/editor/pages/{identity}/validate": {
|
||||
"post": {
|
||||
"operationId": "page_validate_admin_api_v1_editor_pages__identity__validate_post",
|
||||
@@ -4939,6 +5490,140 @@
|
||||
"summary": "Page Transform"
|
||||
}
|
||||
},
|
||||
"/admin/api/v1/pages/{identity}/update": {
|
||||
"post": {
|
||||
"operationId": "page_update_admin_api_v1_pages__identity__update_post",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "identity",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Identity",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/EditorUpdate"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/EditorUpdateResult"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"400": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Bad Request"
|
||||
},
|
||||
"401": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Unauthorized"
|
||||
},
|
||||
"403": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Forbidden"
|
||||
},
|
||||
"404": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Not Found"
|
||||
},
|
||||
"405": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Method Not Allowed"
|
||||
},
|
||||
"409": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Conflict"
|
||||
},
|
||||
"413": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Request Entity Too Large"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Unprocessable Entity"
|
||||
},
|
||||
"500": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorEnvelope"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Internal Server Error"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"InternalUiSession": []
|
||||
}
|
||||
],
|
||||
"summary": "Page Update"
|
||||
}
|
||||
},
|
||||
"/admin/api/v1/pages/{identity}/validate": {
|
||||
"post": {
|
||||
"operationId": "page_validate_admin_api_v1_pages__identity__validate_post",
|
||||
|
||||
Reference in New Issue
Block a user