Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4164

Do we have any idiom for adding multiple sub-resources at once?

$
0
0

Say, there are order resource.

Creating an items under the order resource is clear.

POST /.../order/items HTTP/1.1Host: ...Content-Type: application/json{"name": "whatever","price": 1.0,"quantity": 1}---HTTP/1.1 201 CreatedHost: ...Location: ...://.../order/items/1

Do we have any idiom for creating one or more item resources at once?, without affecting existing sibling resources?

Not invoking the POST /.../order/items as many times as required?


Viewing all articles
Browse latest Browse all 4164

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>