X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/8b935e71d14ca985691ad5f8b2b4262f6f36454e..refs/pull/4467/head:/app/Entities/Controllers/PageApiController.php diff --git a/app/Entities/Controllers/PageApiController.php b/app/Entities/Controllers/PageApiController.php index 655eeeec9..d2947f1bb 100644 --- a/app/Entities/Controllers/PageApiController.php +++ b/app/Entities/Controllers/PageApiController.php @@ -21,6 +21,7 @@ class PageApiController extends ApiController 'html' => ['required_without:markdown', 'string'], 'markdown' => ['required_without:html', 'string'], 'tags' => ['array'], + 'priority' => ['integer'], ], 'update' => [ 'book_id' => ['integer'], @@ -29,6 +30,7 @@ class PageApiController extends ApiController 'html' => ['string'], 'markdown' => ['string'], 'tags' => ['array'], + 'priority' => ['integer'], ], ]; @@ -82,10 +84,14 @@ class PageApiController extends ApiController /** * View the details of a single page. - * * Pages will always have HTML content. They may have markdown content * if the markdown editor was used to last update the page. * + * The 'html' property is the fully rendered & escaped HTML content that BookStack + * would show on page view, with page includes handled. + * The 'raw_html' property is the direct database stored HTML content, which would be + * what BookStack shows on page edit. + * * See the "Content Security" section of these docs for security considerations when using * the page content returned from this endpoint. */