O'Reilly logo
  • Hank Zhang thinks this is interesting:

To solve this problem, we model this operation as a subresource of /orders and we trigger a purging by doing a POST on that resource. For example:

From

Cover of RESTful Java with JAX-RS 2.0, 2nd Edition

Note

Eventually, the complex operation still needs to be modeled. Doesn't this conflict with the theory that only few operation is enough?
Did the author intentionally bring this case out for giving more consideration to readers?