BookStack
BookStack copied to clipboard
The Create Page API cannot create an empty page.
Describe the Bug
In the Create Page API, requests with empty or whitespace in the markdown/html properties do not succeed.
Steps to Reproduce
It is always reproduced by a page creation request with empty content.
{"name":"page","book_id":30,"markdown":""}
Expected Behaviour
I don't think an empty page with no content is worthless.
Since empty pages can be created in the browser, it would be preferable to be able to create them in the API as well.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v23.12.2
I agree with you