curl --request POST \
--url http://localhost:3000/api/v1/requisitions/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "<string>",
"groups": [
{
"deliveryMethod": "pickup",
"items": [
{
"quantity": 1,
"itemId": "<string>",
"item": {
"name": "<string>",
"code": "<string>",
"description": "<string>",
"unitOfMeasure": "<string>",
"brand": "<string>",
"material": "<string>",
"certification": "<string>",
"type": "<string>"
}
}
],
"name": "<string>",
"addressId": "<string>"
}
],
"type": "<string>",
"sector": "<string>",
"code": "<string>"
}
'{
"requisitionId": "<string>"
}curl --request POST \
--url http://localhost:3000/api/v1/requisitions/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "<string>",
"groups": [
{
"deliveryMethod": "pickup",
"items": [
{
"quantity": 1,
"itemId": "<string>",
"item": {
"name": "<string>",
"code": "<string>",
"description": "<string>",
"unitOfMeasure": "<string>",
"brand": "<string>",
"material": "<string>",
"certification": "<string>",
"type": "<string>"
}
}
],
"name": "<string>",
"addressId": "<string>"
}
],
"type": "<string>",
"sector": "<string>",
"code": "<string>"
}
'{
"requisitionId": "<string>"
}1Show child attributes
pickup, delivery Show child attributes
x > 0Requisición creada