Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Draft an article in REST

In our system an article(title, description) can be created, updated an drafted.

  • create - put
  • update - post
  • draft - ???

How to draft an article in REST?

like image 430
leciro Avatar asked Jun 16 '26 17:06

leciro


1 Answers

If your REST api uses for example JSON, you could just have a draft flag on the article that can be true or false. Or a published flag that is true or false.

like image 123
Evert Avatar answered Jun 19 '26 09:06

Evert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!