Search code examples
restrestful-architecturerestful-url

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?


Solution

  • 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.