]> BookStack Code Mirror - bookstack/commitdiff
Updated API examples with date format changes
authorDan Brown <redacted>
Thu, 4 Nov 2021 22:02:21 +0000 (22:02 +0000)
committerDan Brown <redacted>
Thu, 4 Nov 2021 22:02:21 +0000 (22:02 +0000)
Updated to full ISO-8601 to reflect change in Laravel 7.

20 files changed:
dev/api/responses/attachments-create.json
dev/api/responses/attachments-list.json
dev/api/responses/attachments-read.json
dev/api/responses/attachments-update.json
dev/api/responses/books-create.json
dev/api/responses/books-list.json
dev/api/responses/books-read.json
dev/api/responses/books-update.json
dev/api/responses/chapters-create.json
dev/api/responses/chapters-list.json
dev/api/responses/chapters-read.json
dev/api/responses/chapters-update.json
dev/api/responses/pages-create.json
dev/api/responses/pages-list.json
dev/api/responses/pages-read.json
dev/api/responses/pages-update.json
dev/api/responses/shelves-create.json
dev/api/responses/shelves-list.json
dev/api/responses/shelves-read.json
dev/api/responses/shelves-update.json

index 5af524e1a4f878cdaafe29af20dfbe2fcbeb0c1e..ee1b21ac04e179ecad869f8f22ab8ae1ef1ab970 100644 (file)
@@ -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
index 946dd542abe71c8291d4715f8b68e6b7724fe895..af652d5ed61c57bb34215d1e06a55548df32ef15 100644 (file)
@@ -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
     }
index e22f4e5fe92cb3f24900ea21a5900510777b8945..48d6f72e6172a4dada83c3e1e6339263bccc0837 100644 (file)
@@ -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": "<a target=\"_blank\" href=\"https://bookstack.local/attachments/5\">My updated attachment</a>",
     "markdown": "[My updated attachment](https://bookstack.local/attachments/5)"
index 8054b0e4897a25640845aa10b0328d7bae195562..43689eb61a9c03ff950a0257f170c127f6e2effc 100644 (file)
@@ -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
index 124305c8cd3527fca0c3117d78005d0fd989e93a..ede6fcc8e5cee0cad9cac82282448c1b35ba37a9 100644 (file)
@@ -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
index 9900b5b0445a3d157237ec95830ccf735672b00e..45a8c542f387b0a8000387fd2ccb2bcb9e72aa65 100644 (file)
@@ -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,
index 0b0bce4e8f91571e443063623766ee61c84efb55..7de85addce5525d9e71f924b288c78fff37a3156 100644 (file)
@@ -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": "https:\/\/p.rizon.top:443\/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",
index fd93dc9aef1a3045ed874be2c9451adc7074b910..30c910aa32db870deed44c4954b894f6df8e142e 100644 (file)
@@ -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,
index a990f278bac30e02c907e824c3a66841902b5bb2..81b422c255bb476fa4dcea31c2a9e71fba46a3a6 100644 (file)
@@ -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
   },
       "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
index 72ed7534df2eba47e16fa883dde9d216cb37c809..9790286b0a2ccf52bf51743552878cd63b618121 100644 (file)
@@ -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
index 41fed80efc1a3786ca4919c9d8d33a7937e2197a..a51b406c77fd1c5d73783cbd2c73201447b1f288 100644 (file)
@@ -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,
index 11dedd0ca897f6efd4ebbc207e3ed988ba418ca3..9ce88dab2266676b9a07d31c642ba569128021dd 100644 (file)
@@ -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
   },
       "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
index 0b19fb47309d11af43a5bc8ddbb9eabeb2c49713..eeaa5303af6d5eea824c59c733945b209d46add0 100644 (file)
@@ -6,8 +6,8 @@
        "slug": "my-api-page",
        "html": "<p id=\"bkmrk-my-new-api-page\">my new API page</p>",
        "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"
index 9c162c6b6ee1200a9477cbed1d4ce6f977477efc..2ff4aeb3a82f16eb8dc97008479e40d23a0215dd 100644 (file)
@@ -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
index 93f7770ac7850650496087ff191c570c7bd3787e..9a21cd44cad93a2fc13846d7c54e687faece45da 100644 (file)
@@ -6,8 +6,8 @@
        "slug": "a-page-written-in-markdown",
        "html": "<h1 id=\"bkmrk-how-this-is-built\">How this is built</h1>\r\n<p id=\"bkmrk-this-page-is-written\">This page is written in markdown. BookStack stores the page data in HTML.</p>\r\n<p id=\"bkmrk-here%27s-a-cute-pictur\">Here's a cute picture of my cat:</p>\r\n<p id=\"bkmrk-\"><a href=\"http://example.com/uploads/images/gallery/2020-04/yXSrubes.jpg\"><img src=\"http://example.com/uploads/images/gallery/2020-04/scaled-1680-/yXSrubes.jpg\" alt=\"yXSrubes.jpg\"></a></p>",
        "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"
index ae5c0ea3fcb7a9a22708d03979545b33bf9bacb5..0b8b2374c180fe66c4497b2f56095b5fc5cb4675 100644 (file)
@@ -6,8 +6,8 @@
        "slug": "my-updated-api-page",
        "html": "<p id=\"bkmrk-my-new-api-page---up\">my new API page - Updated</p>",
        "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"
index fafa4c9cd1e64f82bf4e81db8fbcf7aca256b620..9988c782c1a7db50aec3ca789d17ec5cfcd66cc5 100644 (file)
@@ -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
index f5e9d03bb6f10ba6df1ed1677782ca788c7bc0a6..82ead7d93a3da98279cef96cb1d2a905218fe317 100644 (file)
@@ -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,
index d663e82c5fe2bd074c9ee1e7c24f87869094d35f..f2afcdac0268a39d51a21da8fe1356ccd554e87f 100644 (file)
@@ -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",
index 4bde44b54d5f2e2a188788d306fae0b0cdede022..551dacb1f305aebcf55b2d3355266676cc8151a9 100644 (file)
@@ -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