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
Post a Comment