From cccee0808f6a9c67e11da14368fc1ed917b6cd96 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Thu, 4 Nov 2021 22:02:21 +0000 Subject: [PATCH] Updated API examples with date format changes Updated to full ISO-8601 to reflect change in Laravel 7. --- dev/api/responses/attachments-create.json | 4 ++-- dev/api/responses/attachments-list.json | 8 ++++---- dev/api/responses/attachments-read.json | 4 ++-- dev/api/responses/attachments-update.json | 4 ++-- dev/api/responses/books-create.json | 4 ++-- dev/api/responses/books-list.json | 8 ++++---- dev/api/responses/books-read.json | 8 ++++---- dev/api/responses/books-update.json | 4 ++-- dev/api/responses/chapters-create.json | 16 ++++++++-------- dev/api/responses/chapters-list.json | 8 ++++---- dev/api/responses/chapters-read.json | 12 ++++++------ dev/api/responses/chapters-update.json | 16 ++++++++-------- dev/api/responses/pages-create.json | 4 ++-- dev/api/responses/pages-list.json | 12 ++++++------ dev/api/responses/pages-read.json | 4 ++-- dev/api/responses/pages-update.json | 4 ++-- dev/api/responses/shelves-create.json | 4 ++-- dev/api/responses/shelves-list.json | 12 ++++++------ dev/api/responses/shelves-read.json | 8 ++++---- dev/api/responses/shelves-update.json | 4 ++-- 20 files changed, 74 insertions(+), 74 deletions(-) diff --git a/dev/api/responses/attachments-create.json b/dev/api/responses/attachments-create.json index 5af524e1a..ee1b21ac0 100644 --- a/dev/api/responses/attachments-create.json +++ b/dev/api/responses/attachments-create.json @@ -7,6 +7,6 @@ "order": 2, "created_by": 1, "updated_by": 1, - "created_at": "2021-10-20 06:35:46", - "updated_at": "2021-10-20 06:35:46" + "created_at": "2021-10-20T06:35:46.000000Z", + "updated_at": "2021-10-20T06:35:46.000000Z" } \ No newline at end of file diff --git a/dev/api/responses/attachments-list.json b/dev/api/responses/attachments-list.json index 946dd542a..af652d5ed 100644 --- a/dev/api/responses/attachments-list.json +++ b/dev/api/responses/attachments-list.json @@ -7,8 +7,8 @@ "uploaded_to": 8, "external": false, "order": 1, - "created_at": "2021-10-11 06:18:49", - "updated_at": "2021-10-20 06:31:10", + "created_at": "2021-10-11T06:18:49.000000Z", + "updated_at": "2021-10-20T06:31:10.000000Z", "created_by": 1, "updated_by": 1 }, @@ -19,8 +19,8 @@ "uploaded_to": 9, "external": true, "order": 1, - "created_at": "2021-10-20 06:30:11", - "updated_at": "2021-10-20 06:30:11", + "created_at": "2021-10-20T06:30:11.000000Z", + "updated_at": "2021-10-20T06:30:11.000000Z", "created_by": 1, "updated_by": 1 } diff --git a/dev/api/responses/attachments-read.json b/dev/api/responses/attachments-read.json index e22f4e5fe..48d6f72e6 100644 --- a/dev/api/responses/attachments-read.json +++ b/dev/api/responses/attachments-read.json @@ -15,8 +15,8 @@ "name": "Admin", "slug": "admin" }, - "created_at": "2021-10-20 06:35:46", - "updated_at": "2021-10-20 06:37:11", + "created_at": "2021-10-20T06:35:46.000000Z", + "updated_at": "2021-10-20T06:37:11.000000Z", "links": { "html": "My updated attachment", "markdown": "[My updated attachment](https://bookstack.local/attachments/5)" diff --git a/dev/api/responses/attachments-update.json b/dev/api/responses/attachments-update.json index 8054b0e48..43689eb61 100644 --- a/dev/api/responses/attachments-update.json +++ b/dev/api/responses/attachments-update.json @@ -7,6 +7,6 @@ "order": 2, "created_by": 1, "updated_by": 1, - "created_at": "2021-10-20 06:35:46", - "updated_at": "2021-10-20 06:37:11" + "created_at": "2021-10-20T06:35:46.000000Z", + "updated_at": "2021-10-20T06:37:11.000000Z" } \ No newline at end of file diff --git a/dev/api/responses/books-create.json b/dev/api/responses/books-create.json index 124305c8c..ede6fcc8e 100644 --- a/dev/api/responses/books-create.json +++ b/dev/api/responses/books-create.json @@ -5,7 +5,7 @@ "updated_by": 1, "owned_by": 1, "slug": "my-new-book", - "updated_at": "2020-01-12 14:05:11", - "created_at": "2020-01-12 14:05:11", + "updated_at": "2020-01-12T14:05:11.000000Z", + "created_at": "2020-01-12T14:05:11.000000Z", "id": 15 } \ No newline at end of file diff --git a/dev/api/responses/books-list.json b/dev/api/responses/books-list.json index 9900b5b04..45a8c542f 100644 --- a/dev/api/responses/books-list.json +++ b/dev/api/responses/books-list.json @@ -5,8 +5,8 @@ "name": "BookStack User Guide", "slug": "bookstack-user-guide", "description": "This is a general guide on using BookStack on a day-to-day basis.", - "created_at": "2019-05-05 21:48:46", - "updated_at": "2019-12-11 20:57:31", + "created_at": "2019-05-05T21:48:46.000000Z", + "updated_at": "2019-12-11T20:57:31.000000Z", "created_by": 1, "updated_by": 1, "owned_by": 1, @@ -17,8 +17,8 @@ "name": "Inventore inventore quia voluptatem.", "slug": "inventore-inventore-quia-voluptatem", "description": "Veniam nihil voluptas enim laborum corporis quos sint. Ab rerum voluptas ut iste voluptas magni quibusdam ut. Amet omnis enim voluptate neque facilis.", - "created_at": "2019-05-05 22:10:14", - "updated_at": "2019-12-11 20:57:23", + "created_at": "2019-05-05T22:10:14.000000Z", + "updated_at": "2019-12-11T20:57:23.000000Z", "created_by": 4, "updated_by": 3, "owned_by": 3, diff --git a/dev/api/responses/books-read.json b/dev/api/responses/books-read.json index 0b0bce4e8..7de85addc 100644 --- a/dev/api/responses/books-read.json +++ b/dev/api/responses/books-read.json @@ -3,8 +3,8 @@ "name": "My own book", "slug": "my-own-book", "description": "This is my own little book", - "created_at": "2020-01-12 14:09:59", - "updated_at": "2020-01-12 14:11:51", + "created_at": "2020-01-12T14:09:59.000000Z", + "updated_at": "2020-01-12T14:11:51.000000Z", "created_by": { "id": 1, "name": "Admin" @@ -29,8 +29,8 @@ "id": 452, "name": "sjovall_m117hUWMu40.jpg", "url": "http:\/\/bookstack.local\/uploads\/images\/cover_book\/2020-01\/sjovall_m117hUWMu40.jpg", - "created_at": "2020-01-12 14:11:51", - "updated_at": "2020-01-12 14:11:51", + "created_at": "2020-01-12T14:11:51.000000Z", + "updated_at": "2020-01-12T14:11:51.000000Z", "created_by": 1, "updated_by": 1, "path": "\/uploads\/images\/cover_book\/2020-01\/sjovall_m117hUWMu40.jpg", diff --git a/dev/api/responses/books-update.json b/dev/api/responses/books-update.json index fd93dc9ae..30c910aa3 100644 --- a/dev/api/responses/books-update.json +++ b/dev/api/responses/books-update.json @@ -3,8 +3,8 @@ "name": "My own book", "slug": "my-own-book", "description": "This is my own little book - updated", - "created_at": "2020-01-12 14:09:59", - "updated_at": "2020-01-12 14:16:10", + "created_at": "2020-01-12T14:09:59.000000Z", + "updated_at": "2020-01-12T14:16:10.000000Z", "created_by": 1, "updated_by": 1, "owned_by": 1, diff --git a/dev/api/responses/chapters-create.json b/dev/api/responses/chapters-create.json index a990f278b..81b422c25 100644 --- a/dev/api/responses/chapters-create.json +++ b/dev/api/responses/chapters-create.json @@ -7,16 +7,16 @@ "updated_by": 1, "owned_by": 1, "slug": "my-fantastic-new-chapter", - "updated_at": "2020-05-22 22:59:55", - "created_at": "2020-05-22 22:59:55", + "updated_at": "2020-05-22T22:59:55.000000Z", + "created_at": "2020-05-22T22:59:55.000000Z", "id": 74, "book": { "id": 1, "name": "BookStack User Guide", "slug": "bookstack-user-guide", "description": "This is a general guide on using BookStack on a day-to-day basis.", - "created_at": "2019-05-05 21:48:46", - "updated_at": "2019-12-11 20:57:31", + "created_at": "2019-05-05T21:48:46.000000Z", + "updated_at": "2019-12-11T20:57:31.000000Z", "created_by": 1, "updated_by": 1 }, @@ -25,15 +25,15 @@ "name": "Category", "value": "Top Content", "order": 0, - "created_at": "2020-05-22 22:59:55", - "updated_at": "2020-05-22 22:59:55" + "created_at": "2020-05-22T22:59:55.000000Z", + "updated_at": "2020-05-22T22:59:55.000000Z" }, { "name": "Rating", "value": "Highest", "order": 0, - "created_at": "2020-05-22 22:59:55", - "updated_at": "2020-05-22 22:59:55" + "created_at": "2020-05-22T22:59:55.000000Z", + "updated_at": "2020-05-22T22:59:55.000000Z" } ] } \ No newline at end of file diff --git a/dev/api/responses/chapters-list.json b/dev/api/responses/chapters-list.json index 72ed7534d..9790286b0 100644 --- a/dev/api/responses/chapters-list.json +++ b/dev/api/responses/chapters-list.json @@ -7,8 +7,8 @@ "slug": "content-creation", "description": "How to create documentation on whatever subject you need to write about.", "priority": 3, - "created_at": "2019-05-05 21:49:56", - "updated_at": "2019-09-28 11:24:23", + "created_at": "2019-05-05:", + "updated_at": "2019-09-28T11:24:23.000000Z", "created_by": 1, "updated_by": 1, "owned_by": 1 @@ -20,8 +20,8 @@ "slug": "managing-content", "description": "How to keep things organised and orderly in the system for easier navigation and better user experience.", "priority": 5, - "created_at": "2019-05-05 21:58:07", - "updated_at": "2019-10-17 15:05:34", + "created_at": "2019-05-05T21:58:07.000000Z", + "updated_at": "2019-10-17T15:05:34.000000Z", "created_by": 3, "updated_by": 3, "owned_by": 3 diff --git a/dev/api/responses/chapters-read.json b/dev/api/responses/chapters-read.json index 41fed80ef..a51b406c7 100644 --- a/dev/api/responses/chapters-read.json +++ b/dev/api/responses/chapters-read.json @@ -5,8 +5,8 @@ "name": "Content Creation", "description": "How to create documentation on whatever subject you need to write about.", "priority": 3, - "created_at": "2019-05-05 21:49:56", - "updated_at": "2019-09-28 11:24:23", + "created_at": "2019-05-05T21:49:56.000000Z", + "updated_at": "2019-09-28T11:24:23.000000Z", "created_by": { "id": 1, "name": "Admin" @@ -34,8 +34,8 @@ "name": "How to create page content", "slug": "how-to-create-page-content", "priority": 0, - "created_at": "2019-05-05 21:49:58", - "updated_at": "2019-08-26 14:32:59", + "created_at": "2019-05-05T21:49:58.000000Z", + "updated_at": "2019-08-26T14:32:59.000000Z", "created_by": 1, "updated_by": 1, "draft": false, @@ -49,8 +49,8 @@ "name": "Good book structure", "slug": "good-book-structure", "priority": 1, - "created_at": "2019-05-05 22:01:55", - "updated_at": "2019-06-06 12:03:04", + "created_at": "2019-05-05T22:01:55.000000Z", + "updated_at": "2019-06-06T12:03:04.000000Z", "created_by": 3, "updated_by": 3, "draft": false, diff --git a/dev/api/responses/chapters-update.json b/dev/api/responses/chapters-update.json index 11dedd0ca..9ce88dab2 100644 --- a/dev/api/responses/chapters-update.json +++ b/dev/api/responses/chapters-update.json @@ -5,8 +5,8 @@ "name": "My fantastic updated chapter", "description": "This is an updated chapter that I've altered via the API", "priority": 7, - "created_at": "2020-05-22 23:03:35", - "updated_at": "2020-05-22 23:07:20", + "created_at": "2020-05-22T23:03:35.000000Z", + "updated_at": "2020-05-22T23:07:20.000000Z", "created_by": 1, "updated_by": 1, "owned_by": 1, @@ -15,8 +15,8 @@ "name": "BookStack User Guide", "slug": "bookstack-user-guide", "description": "This is a general guide on using BookStack on a day-to-day basis.", - "created_at": "2019-05-05 21:48:46", - "updated_at": "2019-12-11 20:57:31", + "created_at": "2019-05-05T21:48:46.000000Z", + "updated_at": "2019-12-11T20:57:31.000000Z", "created_by": 1, "updated_by": 1 }, @@ -25,15 +25,15 @@ "name": "Category", "value": "Kinda Good Content", "order": 0, - "created_at": "2020-05-22 23:07:20", - "updated_at": "2020-05-22 23:07:20" + "created_at": "2020-05-22T23:07:20.000000Z", + "updated_at": "2020-05-22T23:07:20.000000Z" }, { "name": "Rating", "value": "Medium", "order": 0, - "created_at": "2020-05-22 23:07:20", - "updated_at": "2020-05-22 23:07:20" + "created_at": "2020-05-22T23:07:20.000000Z", + "updated_at": "2020-05-22T23:07:20.000000Z" } ] } \ No newline at end of file diff --git a/dev/api/responses/pages-create.json b/dev/api/responses/pages-create.json index 0b19fb473..eeaa5303a 100644 --- a/dev/api/responses/pages-create.json +++ b/dev/api/responses/pages-create.json @@ -6,8 +6,8 @@ "slug": "my-api-page", "html": "

my new API page

", "priority": 14, - "created_at": "2020-11-28 15:01:39", - "updated_at": "2020-11-28 15:01:39", + "created_at": "2020-11-28T15:01:39.000000Z", + "updated_at": "2020-11-28T15:01:39.000000Z", "created_by": { "id": 1, "name": "Admin" diff --git a/dev/api/responses/pages-list.json b/dev/api/responses/pages-list.json index 9c162c6b6..2ff4aeb3a 100644 --- a/dev/api/responses/pages-list.json +++ b/dev/api/responses/pages-list.json @@ -9,8 +9,8 @@ "priority": 0, "draft": false, "template": false, - "created_at": "2019-05-05 21:49:58", - "updated_at": "2020-07-04 15:50:58", + "created_at": "2019-05-05T21:49:58.000000Z", + "updated_at": "2020-07-04T15:50:58.000000Z", "created_by": 1, "updated_by": 1, "owned_by": 1 @@ -24,8 +24,8 @@ "priority": 2, "draft": false, "template": false, - "created_at": "2019-05-05 21:53:30", - "updated_at": "2019-06-06 12:03:04", + "created_at": "2019-05-05T21:53:30.000000Z", + "updated_at": "2019-06-06T12:03:04.000000Z", "created_by": 1, "updated_by": 1, "owned_by": 1 @@ -39,8 +39,8 @@ "priority": 3, "draft": false, "template": false, - "created_at": "2019-05-05 21:53:49", - "updated_at": "2019-12-18 21:56:52", + "created_at": "2019-05-05T21:53:49.000000Z", + "updated_at": "2019-12-18T21:56:52.000000Z", "created_by": 1, "updated_by": 1, "owned_by": 1 diff --git a/dev/api/responses/pages-read.json b/dev/api/responses/pages-read.json index 93f7770ac..9a21cd44c 100644 --- a/dev/api/responses/pages-read.json +++ b/dev/api/responses/pages-read.json @@ -6,8 +6,8 @@ "slug": "a-page-written-in-markdown", "html": "

How this is built

\r\n

This page is written in markdown. BookStack stores the page data in HTML.

\r\n

Here's a cute picture of my cat:

\r\n

\"yXSrubes.jpg\"

", "priority": 13, - "created_at": "2020-02-02 21:40:38", - "updated_at": "2020-11-28 14:43:20", + "created_at": "2020-02-02T21:40:38.000000Z", + "updated_at": "2020-11-28T14:43:20.000000Z", "created_by": { "id": 1, "name": "Admin" diff --git a/dev/api/responses/pages-update.json b/dev/api/responses/pages-update.json index ae5c0ea3f..0b8b2374c 100644 --- a/dev/api/responses/pages-update.json +++ b/dev/api/responses/pages-update.json @@ -6,8 +6,8 @@ "slug": "my-updated-api-page", "html": "

my new API page - Updated

", "priority": 16, - "created_at": "2020-11-28 15:10:54", - "updated_at": "2020-11-28 15:13:03", + "created_at": "2020-11-28T15:10:54.000000Z", + "updated_at": "2020-11-28T15:13:03.000000Z", "created_by": { "id": 1, "name": "Admin" diff --git a/dev/api/responses/shelves-create.json b/dev/api/responses/shelves-create.json index fafa4c9cd..9988c782c 100644 --- a/dev/api/responses/shelves-create.json +++ b/dev/api/responses/shelves-create.json @@ -5,7 +5,7 @@ "updated_by": 1, "owned_by": 1, "slug": "my-shelf", - "updated_at": "2020-04-10 13:24:09", - "created_at": "2020-04-10 13:24:09", + "updated_at": "2020-04-10T13:24:09.000000Z", + "created_at": "2020-04-10T13:24:09.000000Z", "id": 14 } \ No newline at end of file diff --git a/dev/api/responses/shelves-list.json b/dev/api/responses/shelves-list.json index f5e9d03bb..82ead7d93 100644 --- a/dev/api/responses/shelves-list.json +++ b/dev/api/responses/shelves-list.json @@ -5,8 +5,8 @@ "name": "Qui qui aspernatur autem molestiae libero necessitatibus molestias.", "slug": "qui-qui-aspernatur-autem-molestiae-libero-necessitatibus-molestias", "description": "Enim dolor ut quia error dolores est. Aut distinctio consequuntur non nisi nostrum. Labore cupiditate error labore aliquid provident impedit voluptatibus. Quaerat impedit excepturi eius qui eius voluptatem reiciendis.", - "created_at": "2019-05-05 22:10:16", - "updated_at": "2020-04-10 13:00:45", + "created_at": "2019-05-05T22:10:16.000000Z", + "updated_at": "2020-04-10T13:00:45.000000Z", "created_by": 4, "updated_by": 1, "owned_by": 1, @@ -17,8 +17,8 @@ "name": "Ipsum aut inventore fuga libero non facilis.", "slug": "ipsum-aut-inventore-fuga-libero-non-facilis", "description": "Labore culpa modi perspiciatis harum sit. Maxime non et nam est. Quae ut laboriosam repellendus sunt quisquam. Velit at est perspiciatis nesciunt adipisci nobis illo. Sed possimus odit optio officiis nisi voluptates officiis dolor.", - "created_at": "2019-05-05 22:10:16", - "updated_at": "2020-04-10 13:00:58", + "created_at": "2019-05-05T22:10:16.000000Z", + "updated_at": "2020-04-10T13:00:58.000000Z", "created_by": 4, "updated_by": 1, "owned_by": 1, @@ -29,8 +29,8 @@ "name": "Omnis reiciendis aut molestias sint accusantium.", "slug": "omnis-reiciendis-aut-molestias-sint-accusantium", "description": "Qui ea occaecati alias est dolores voluptatem doloribus. Ad reiciendis corporis vero nostrum omnis et. Non doloribus ut eaque ut quos dolores.", - "created_at": "2019-05-05 22:10:16", - "updated_at": "2020-04-10 13:00:53", + "created_at": "2019-05-05T22:10:16.000000Z", + "updated_at": "2020-04-10T13:00:53.000000Z", "created_by": 4, "updated_by": 1, "owned_by": 4, diff --git a/dev/api/responses/shelves-read.json b/dev/api/responses/shelves-read.json index d663e82c5..f2afcdac0 100644 --- a/dev/api/responses/shelves-read.json +++ b/dev/api/responses/shelves-read.json @@ -15,8 +15,8 @@ "id": 1, "name": "Admin" }, - "created_at": "2020-04-10 13:24:09", - "updated_at": "2020-04-10 13:31:04", + "created_at": "2020-04-10T13:24:09.000000Z", + "updated_at": "2020-04-10T13:31:04.000000Z", "tags": [ { "id": 16, @@ -29,8 +29,8 @@ "id": 501, "name": "anafrancisconi_Sp04AfFCPNM.jpg", "url": "http://bookstack.local/uploads/images/cover_book/2020-04/anafrancisconi_Sp04AfFCPNM.jpg", - "created_at": "2020-04-10 13:31:04", - "updated_at": "2020-04-10 13:31:04", + "created_at": "2020-04-10T13:31:04.000000Z", + "updated_at": "2020-04-10T13:31:04.000000Z", "created_by": 1, "updated_by": 1, "path": "/uploads/images/cover_book/2020-04/anafrancisconi_Sp04AfFCPNM.jpg", diff --git a/dev/api/responses/shelves-update.json b/dev/api/responses/shelves-update.json index 4bde44b54..551dacb1f 100644 --- a/dev/api/responses/shelves-update.json +++ b/dev/api/responses/shelves-update.json @@ -7,6 +7,6 @@ "updated_by": 1, "owned_by": 1, "image_id": 501, - "created_at": "2020-04-10 13:24:09", - "updated_at": "2020-04-10 13:48:22" + "created_at": "2020-04-10T13:24:09.000000Z", + "updated_at": "2020-04-10T13:48:22.000000Z" } \ No newline at end of file