Building a Remote Procedural Call (RPC) endpoint with the Django Rest Framework
--
The Django Rest Framework (DRF), has a lot of built in functionality that supports CRUD operations, but building an RPC endpoint requires hand-rolling much of that. Ultimately, if we’re adding an RPC endpoint to an existing API with mostly REST endpoints, we want to match the design of our new endpoint to match that of the DRF, so we need to understand what each piece does.
All of these pieces are explained in the DRF docs, but seeing a complete example and how they all work together can add…