From ca2d2c97d443588e0eaee312788700806c57ace3 Mon Sep 17 00:00:00 2001 From: Thomas Kuschan Date: Fri, 30 Jun 2023 09:23:02 +0200 Subject: [PATCH] API Docs: Add User Slugs to Example Responses --- dev/api/responses/books-read.json | 9 ++++++--- dev/api/responses/chapters-read.json | 9 ++++++--- dev/api/responses/pages-create.json | 9 ++++++--- dev/api/responses/pages-read.json | 9 ++++++--- dev/api/responses/pages-update.json | 9 ++++++--- dev/api/responses/shelves-read.json | 9 ++++++--- 6 files changed, 36 insertions(+), 18 deletions(-) diff --git a/dev/api/responses/books-read.json b/dev/api/responses/books-read.json index 8208b21aa..3744445d0 100644 --- a/dev/api/responses/books-read.json +++ b/dev/api/responses/books-read.json @@ -7,15 +7,18 @@ "updated_at": "2020-01-12T14:11:51.000000Z", "created_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "updated_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "owned_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "contents": [ { diff --git a/dev/api/responses/chapters-read.json b/dev/api/responses/chapters-read.json index a51b406c7..7e629fee8 100644 --- a/dev/api/responses/chapters-read.json +++ b/dev/api/responses/chapters-read.json @@ -9,15 +9,18 @@ "updated_at": "2019-09-28T11:24:23.000000Z", "created_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "updated_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "owned_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "tags": [ { diff --git a/dev/api/responses/pages-create.json b/dev/api/responses/pages-create.json index 5c3d80215..7ba6a8272 100644 --- a/dev/api/responses/pages-create.json +++ b/dev/api/responses/pages-create.json @@ -11,15 +11,18 @@ "updated_at": "2020-11-28T15:01:39.000000Z", "created_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "updated_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "owned_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "draft": false, "markdown": "", diff --git a/dev/api/responses/pages-read.json b/dev/api/responses/pages-read.json index a47990cc6..59b2f8b74 100644 --- a/dev/api/responses/pages-read.json +++ b/dev/api/responses/pages-read.json @@ -11,15 +11,18 @@ "updated_at": "2020-11-28T14:43:20.000000Z", "created_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "updated_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "owned_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "draft": false, "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)", diff --git a/dev/api/responses/pages-update.json b/dev/api/responses/pages-update.json index e91b74661..26d0f4d3c 100644 --- a/dev/api/responses/pages-update.json +++ b/dev/api/responses/pages-update.json @@ -11,15 +11,18 @@ "updated_at": "2020-11-28T15:13:03.000000Z", "created_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "updated_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "owned_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "draft": false, "markdown": "", diff --git a/dev/api/responses/shelves-read.json b/dev/api/responses/shelves-read.json index bf1b13669..8debaae72 100644 --- a/dev/api/responses/shelves-read.json +++ b/dev/api/responses/shelves-read.json @@ -5,15 +5,18 @@ "description": "This is my shelf with some books", "created_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "updated_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "owned_by": { "id": 1, - "name": "Admin" + "name": "Admin", + "slug": "admin" }, "created_at": "2020-04-10T13:24:09.000000Z", "updated_at": "2020-04-10T13:31:04.000000Z",