]> BookStack Code Mirror - bookstack/commitdiff
API Docs: Sort a few example responses
authorThomas Kuschan <redacted>
Fri, 30 Jun 2023 07:26:22 +0000 (09:26 +0200)
committerThomas Kuschan <redacted>
Fri, 30 Jun 2023 07:27:18 +0000 (09:27 +0200)
dev/api/responses/books-create.json
dev/api/responses/chapters-create.json
dev/api/responses/shelves-create.json

index ede6fcc8e5cee0cad9cac82282448c1b35ba37a9..12a3e9e9fcd238631a7a3d4508e4c9027a3337a9 100644 (file)
@@ -1,11 +1,11 @@
 {
+  "id": 15,
   "name": "My new book",
+  "slug": "my-new-book",
   "description": "This is a book created via the API",
   "created_by": 1,
   "updated_by": 1,
   "owned_by": 1,
-  "slug": "my-new-book",
   "updated_at": "2020-01-12T14:05:11.000000Z",
-  "created_at": "2020-01-12T14:05:11.000000Z",
-  "id": 15
+  "created_at": "2020-01-12T14:05:11.000000Z"
 }
\ No newline at end of file
index 1e6932962d7c0ef3d59f37ea037e07f5d853a68a..aff2f4238389e1686bdd1c60cca63f9329ef2be2 100644 (file)
@@ -1,12 +1,13 @@
 {
+  "id": 74,
   "book_id": 1,
-  "priority": 6,
+  "slug": "my-fantastic-new-chapter",
   "name": "My fantastic new chapter",
   "description": "This is a great new chapter that I've created via the API",
+  "priority": 6,
   "created_by": 1,
   "updated_by": 1,
   "owned_by": 1,
-  "slug": "my-fantastic-new-chapter",
   "updated_at": "2020-05-22T22:59:55.000000Z",
   "created_at": "2020-05-22T22:59:55.000000Z",
   "id": 74,
index 9988c782c1a7db50aec3ca789d17ec5cfcd66cc5..84caf8bdc869a8e0356f6b8f0b7acfef1ece47f2 100644 (file)
@@ -1,11 +1,11 @@
 {
+  "id": 14,
   "name": "My shelf",
+  "slug": "my-shelf",
   "description": "This is my shelf with some books",
   "created_by": 1,
   "updated_by": 1,
   "owned_by": 1,
-  "slug": "my-shelf",
-  "updated_at": "2020-04-10T13:24:09.000000Z",
   "created_at": "2020-04-10T13:24:09.000000Z",
-  "id": 14
+  "updated_at": "2020-04-10T13:24:09.000000Z"
 }
\ No newline at end of file