From 174cd5a89343463d73707af5928a8ce97f4285ce Mon Sep 17 00:00:00 2001 From: Thomas Kuschan Date: Fri, 30 Jun 2023 09:35:19 +0200 Subject: [PATCH] API Docs: Add Missing editor fields in Example Responses --- dev/api/responses/chapters-read.json | 2 ++ dev/api/responses/pages-create.json | 1 + dev/api/responses/pages-list.json | 3 +++ dev/api/responses/pages-read.json | 1 + dev/api/responses/pages-update.json | 1 + 5 files changed, 8 insertions(+) diff --git a/dev/api/responses/chapters-read.json b/dev/api/responses/chapters-read.json index 75c324a61..9565c3989 100644 --- a/dev/api/responses/chapters-read.json +++ b/dev/api/responses/chapters-read.json @@ -45,6 +45,7 @@ "draft": false, "revision_count": 2, "template": false, + "editor": "wysiwyg", "book_slug": "example-book" }, { @@ -61,6 +62,7 @@ "draft": false, "revision_count": 1, "template": false, + "editor": "wysiwyg", "book_slug": "example-book" } ] diff --git a/dev/api/responses/pages-create.json b/dev/api/responses/pages-create.json index 7ba6a8272..385d5384e 100644 --- a/dev/api/responses/pages-create.json +++ b/dev/api/responses/pages-create.json @@ -28,6 +28,7 @@ "markdown": "", "revision_count": 1, "template": false, + "editor": "wysiwyg", "tags": [ { "name": "Category", diff --git a/dev/api/responses/pages-list.json b/dev/api/responses/pages-list.json index 2b465c978..8615294d3 100644 --- a/dev/api/responses/pages-list.json +++ b/dev/api/responses/pages-list.json @@ -14,6 +14,7 @@ "created_by": 1, "updated_by": 1, "owned_by": 1, + "editor": "wysiwyg", "book_slug": "example-book" }, { @@ -30,6 +31,7 @@ "created_by": 1, "updated_by": 1, "owned_by": 1, + "editor": "wysiwyg", "book_slug": "example-book" }, { @@ -46,6 +48,7 @@ "created_by": 1, "updated_by": 1, "owned_by": 1, + "editor": "wysiwyg", "book_slug": "example-book" } ], diff --git a/dev/api/responses/pages-read.json b/dev/api/responses/pages-read.json index 59b2f8b74..2f3538964 100644 --- a/dev/api/responses/pages-read.json +++ b/dev/api/responses/pages-read.json @@ -28,6 +28,7 @@ "markdown": "# How this is built\r\n\r\nThis page is written in markdown. BookStack stores the page data in HTML.\r\n\r\nHere's a cute picture of my cat:\r\n\r\n[![yXSrubes.jpg](http://example.com/uploads/images/gallery/2020-04/scaled-1680-/yXSrubes.jpg)](http://example.com/uploads/images/gallery/2020-04/yXSrubes.jpg)", "revision_count": 5, "template": false, + "editor": "wysiwyg", "tags": [ { "name": "Category", diff --git a/dev/api/responses/pages-update.json b/dev/api/responses/pages-update.json index 26d0f4d3c..eb1c5bd85 100644 --- a/dev/api/responses/pages-update.json +++ b/dev/api/responses/pages-update.json @@ -28,6 +28,7 @@ "markdown": "", "revision_count": 5, "template": false, + "editor": "wysiwyg", "tags": [ { "name": "Category",