]> BookStack Code Mirror - bookstack/commitdiff
API Docs: Add Missing Type in Response
authorThomas Kuschan <redacted>
Mon, 26 Jun 2023 08:13:47 +0000 (10:13 +0200)
committerThomas Kuschan <redacted>
Mon, 26 Jun 2023 08:14:10 +0000 (10:14 +0200)
Type is always returned when pages/chapters are in a contents array.

dev/api/responses/books-read.json

index 34c7d8adfe67005896125b39bf688f2df036fd74..8208b21aa6beff2108be81ac7d9ffb1c2ce7bb22 100644 (file)
@@ -52,7 +52,8 @@
       "template": false,
       "created_at": "2021-12-19T18:22:11.000000Z",
       "updated_at": "2022-07-29T13:44:15.000000Z",
-      "url": "https://example.com/books/my-own-book/page/cool-animals"
+      "url": "https://example.com/books/my-own-book/page/cool-animals",
+      "type": "page"
     }
   ],
   "tags": [
Morty Proxy This is a proxified and sanitized view of the page, visit original site.