!include
from the api.raml
i tried that as well what happens is that i cannot create individual endpoints for each order , since multiple lists are created
example :
POST : /Orders -d '[ <10 orders> ]'
response : will give a doc which has 10 orders
now i do another request of similar type as above ,
resposne : will give another doc which has 10 orders
i cannot query like /Orders/{orderID}
POST
is meant for creating 1 resource at a time, see https://tools.ietf.org/html/rfc2616#page-54. If you really need an endpoint that creates resources in bulk, it will be a bit trickier to achieve but I would suggest you do this using custom endpoint using Nefertari directly instead of Ramses. I would suggest you stick to the 1 POST = 1 resource logic for now.
So, in your case,POST
to your /orders
endpoint should contain only 1 order object at a time, not an array. This way your "order" schema will be easier to design as it will contain the exact representation of 1 order object.