BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

The Create Page API cannot create an empty page.

Open toras9000 opened this issue 1 year ago • 1 comments

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

toras9000 avatar Feb 25 '24 03:02 toras9000

I agree with you

SvenHerr avatar Apr 16 '24 20:04 SvenHerr