Mix of query and form params in REST service? -


we have rest api which, operations, provide option of asynchronous requests. async requests, service return token can used query completion, while synchronous requests, response not returned until operation completes.

the current design looks this:

url: put /api/orders/1234?async=true

request body: customername=my company&city=dallas

intuitively, seems wrong mix query , form params this, query param (async) providing options service call , not attribute of resource. primary reason did not include in request body.

does approach seem design, or there better more "rest-y" way accomplish same?

the prefer header designed trying do. see spec.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -