Custom actions in your REST API

An updated article on this topic (with a different recommendation) is provided here, as part of my series of articles on RESTful API design.

While working on a REST API for Humanitarian ID, I came across a tricky (and therefore interesting) use case for a REST API: custom actions.

What are custom actions ?

Examples of custom actions are voting on a resource, subscribing to a service, starring or following a resource etc… basically any action which doesn’t fit in the CRUD world. While CRUD operations are…