REST services design: cancel an order?

Viewed 2791

Given order cancelling as a requirement, what is the best design option of representing this operation in RESTful way and why?

I can think at least of the following

  • PUT /orders/{id}/cancelled (with an empty body)
  • PUT /orders/{id} (with an entire order JSON/XML/etc with changed attribute cancelled)
2 Answers
Related