1. Jesper Nøhr
  2. django-piston
Issue #132 new

Include bulk request interface

Anonymous created an issue

It would be cool if piston had an automatic interface at e.g. /bulk which allows pipelining requests. You would submit multiple requests something like:

{{{

!javascript

[{ 'path': '/api/something', 'method': 'GET', }, { 'path': '/api/something_else', 'method': 'POST', 'content-type': 'application/json', 'data': '{ "a": 1 }' }, ... ]

}}}

The requests would be processed in order and and you would get a response like:

{{{

!javascript

[{ 'content-type': 'x-y-z', 'response': 'some response' }, ... ]

}}}

Perhaps there is already a standard for such things.

Comments (0)

  1. Log in to comment