API Design · Senior · Question 41 of 75

Why might an API use resource-oriented 'custom methods' like POST /orders/42:cancel?

Explanation

Google's AIP-136 describes custom methods; other guides use sub-resources like /orders/42/cancellation.

Further reading

Problem with a question

API Design · Senior · question 41

Test yourself

Take the API Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz