Input WYSIWYG: Updated API examples to align with changes

This commit is contained in:
Dan Brown 2023-12-22 14:37:48 +00:00
parent 2a7a81e749
commit fb3cfaf7c7
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
12 changed files with 81 additions and 36 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "My own book", "name": "My own book",
"description": "This is my own little book", "description_html": "<p>This is <strong>my</strong> own little book created via the API</p>",
"default_template_id": 12, "default_template_id": 2427,
"tags": [ "tags": [
{"name": "Category", "value": "Top Content"}, {"name": "Category", "value": "Top Content"},
{"name": "Rating", "value": "Highest"} {"name": "Rating", "value": "Highest"}

View File

@ -1,7 +1,7 @@
{ {
"name": "My updated book", "name": "My updated book",
"description": "This is my book with updated details", "description_html": "<p>This is my book with <em>updated</em> details</p>",
"default_template_id": 12, "default_template_id": 2427,
"tags": [ "tags": [
{"name": "Subject", "value": "Updates"} {"name": "Subject", "value": "Updates"}
] ]

View File

@ -1,7 +1,7 @@
{ {
"book_id": 1, "book_id": 1,
"name": "My fantastic new chapter", "name": "My fantastic new chapter",
"description": "This is a great new chapter that I've created via the API", "description_html": "<p>This is a <strong>great new chapter</strong> that I've created via the API</p>",
"priority": 15, "priority": 15,
"tags": [ "tags": [
{"name": "Category", "value": "Top Content"}, {"name": "Category", "value": "Top Content"},

View File

@ -1,7 +1,7 @@
{ {
"book_id": 1, "book_id": 1,
"name": "My fantastic updated chapter", "name": "My fantastic updated chapter",
"description": "This is an updated chapter that I've altered via the API", "description_html": "<p>This is an <strong>updated chapter</strong> that I've altered via the API</p>",
"priority": 16, "priority": 16,
"tags": [ "tags": [
{"name": "Category", "value": "Kinda Good Content"}, {"name": "Category", "value": "Kinda Good Content"},

View File

@ -1,5 +1,8 @@
{ {
"name": "My shelf", "name": "My shelf",
"description": "This is my shelf with some books", "description_html": "<p>This is <strong>my shelf</strong> with some books</p>",
"books": [5,1,3] "books": [5,1,3],
"tags": [
{"name": "Category", "value": "Learning"}
]
} }

View File

@ -1,5 +1,5 @@
{ {
"name": "My updated shelf", "name": "My updated shelf",
"description": "This is my update shelf with some books", "description_html": "<p>This is my <em>updated shelf</em> with some books</p>",
"books": [5,1,3] "books": [5,1,3]
} }

View File

@ -1,12 +1,26 @@
{ {
"id": 15, "id": 226,
"name": "My new book", "name": "My own book",
"slug": "my-new-book", "slug": "my-own-book",
"description": "This is a book created via the API", "description": "This is my own little book created via the API",
"created_at": "2023-12-22T14:22:28.000000Z",
"updated_at": "2023-12-22T14:22:28.000000Z",
"created_by": 1, "created_by": 1,
"updated_by": 1, "updated_by": 1,
"owned_by": 1, "owned_by": 1,
"default_template_id": 12, "default_template_id": 2427,
"updated_at": "2020-01-12T14:05:11.000000Z", "description_html": "<p>This is <strong>my<\/strong> own little book created via the API<\/p>",
"created_at": "2020-01-12T14:05:11.000000Z" "tags": [
{
"name": "Category",
"value": "Top Content",
"order": 0
},
{
"name": "Rating",
"value": "Highest",
"order": 0
}
],
"cover": null
} }

View File

@ -1,12 +1,21 @@
{ {
"id": 16, "id": 226,
"name": "My updated book", "name": "My updated book",
"slug": "my-updated-book", "slug": "my-updated-book",
"description": "This is my book with updated details", "description": "This is my book with updated details",
"created_at": "2020-01-12T14:09:59.000000Z", "created_at": "2023-12-22T14:22:28.000000Z",
"updated_at": "2020-01-12T14:16:10.000000Z", "updated_at": "2023-12-22T14:24:07.000000Z",
"created_by": 1, "created_by": 1,
"updated_by": 1, "updated_by": 1,
"owned_by": 1, "owned_by": 1,
"default_template_id": 12 "default_template_id": 2427,
"description_html": "<p>This is my book with <em>updated<\/em> details<\/p>",
"tags": [
{
"name": "Subject",
"value": "Updates",
"order": 0
}
],
"cover": null
} }

View File

@ -1,15 +1,16 @@
{ {
"id": 74, "id": 668,
"book_id": 1, "book_id": 1,
"slug": "my-fantastic-new-chapter", "slug": "my-fantastic-new-chapter",
"name": "My fantastic new chapter", "name": "My fantastic new chapter",
"description": "This is a great new chapter that I've created via the API", "description": "This is a great new chapter that I've created via the API",
"priority": 15, "priority": 15,
"created_at": "2023-12-22T14:26:28.000000Z",
"updated_at": "2023-12-22T14:26:28.000000Z",
"created_by": 1, "created_by": 1,
"updated_by": 1, "updated_by": 1,
"owned_by": 1, "owned_by": 1,
"updated_at": "2020-05-22T22:59:55.000000Z", "description_html": "<p>This is a <strong>great new chapter<\/strong> that I've created via the API<\/p>",
"created_at": "2020-05-22T22:59:55.000000Z",
"tags": [ "tags": [
{ {
"name": "Category", "name": "Category",
@ -19,7 +20,7 @@
{ {
"name": "Rating", "name": "Rating",
"value": "Highest", "value": "Highest",
"order": 1 "order": 0
} }
] ]
} }

View File

@ -1,16 +1,16 @@
{ {
"id": 75, "id": 668,
"book_id": 1, "book_id": 1,
"slug": "my-fantastic-updated-chapter", "slug": "my-fantastic-updated-chapter",
"name": "My fantastic updated chapter", "name": "My fantastic updated chapter",
"description": "This is an updated chapter that I've altered via the API", "description": "This is an updated chapter that I've altered via the API",
"priority": 16, "priority": 16,
"created_at": "2020-05-22T23:03:35.000000Z", "created_at": "2023-12-22T14:26:28.000000Z",
"updated_at": "2020-05-22T23:07:20.000000Z", "updated_at": "2023-12-22T14:27:59.000000Z",
"created_by": 1, "created_by": 1,
"updated_by": 1, "updated_by": 1,
"owned_by": 1, "owned_by": 1,
"book_slug": "bookstack-demo-site", "description_html": "<p>This is an <strong>updated chapter<\/strong> that I've altered via the API<\/p>",
"tags": [ "tags": [
{ {
"name": "Category", "name": "Category",
@ -20,7 +20,7 @@
{ {
"name": "Rating", "name": "Rating",
"value": "Medium", "value": "Medium",
"order": 1 "order": 0
} }
] ]
} }

View File

@ -1,11 +1,20 @@
{ {
"id": 14, "id": 20,
"name": "My shelf", "name": "My shelf",
"slug": "my-shelf", "slug": "my-shelf",
"description": "This is my shelf with some books", "description": "This is my shelf with some books",
"created_by": 1, "created_by": 1,
"updated_by": 1, "updated_by": 1,
"created_at": "2023-12-22T14:33:52.000000Z",
"updated_at": "2023-12-22T14:33:52.000000Z",
"owned_by": 1, "owned_by": 1,
"created_at": "2020-04-10T13:24:09.000000Z", "description_html": "<p>This is <strong>my shelf<\/strong> with some books<\/p>",
"updated_at": "2020-04-10T13:24:09.000000Z" "tags": [
{
"name": "Category",
"value": "Learning",
"order": 0
}
],
"cover": null
} }

View File

@ -1,11 +1,20 @@
{ {
"id": 14, "id": 20,
"name": "My updated shelf", "name": "My updated shelf",
"slug": "my-updated-shelf", "slug": "my-updated-shelf",
"description": "This is my update shelf with some books", "description": "This is my updated shelf with some books",
"created_by": 1, "created_by": 1,
"updated_by": 1, "updated_by": 1,
"created_at": "2023-12-22T14:33:52.000000Z",
"updated_at": "2023-12-22T14:35:00.000000Z",
"owned_by": 1, "owned_by": 1,
"created_at": "2020-04-10T13:24:09.000000Z", "description_html": "<p>This is my <em>updated shelf<\/em> with some books<\/p>",
"updated_at": "2020-04-10T13:48:22.000000Z" "tags": [
{
"name": "Category",
"value": "Learning",
"order": 0
}
],
"cover": null
} }