Reputation: 5194
I have an Django application that provide WEB APIs.
I want to add batch requests (send multiple operations in a single HTTP request) handling to it.
What is the best way to do it?
Upvotes: 3
Views: 1931
Reputation: 3865
django-batch-requests seems like a reasonable bare-bones solution. This article gives a better treatment of how batch requests should probably be done in a REST api - basically, the "POST json describing the request" approach is flawed in the same ways SOAP is - and worse, since it makes the behavior of your REST api inconsistent.
Also, Facebook defines a batch requests api if you want something to emulate. They use the SOAP-ish approach.
Upvotes: 3