-
Notifications
You must be signed in to change notification settings - Fork 243
Open
Labels
AgencySpecific to the Agency APISpecific to the Agency APIdocumentationdocumentation change can be for code and/or markdown pagesdocumentation change can be for code and/or markdown pagesminor updateA change that is minor and should require little discussion, or is a maintenance/readme/typo update.A change that is minor and should require little discussion, or is a maintenance/readme/typo update.
Milestone
Description
I want to clarify bulk responses error http codes.
Let's assume i want process multiple vehicles through agency/vehicles endpoint - lets say 3 of them. Lets say first vehicle is already registered, second one has wrong type in filed device_id and third one is correct.
What should be api response and http code in that case? Should it be 409 or 400 or 201 and response like:
{
"success": 1,
"total": 3,
"failures": [
... //all details here abut failures
]
}
Metadata
Metadata
Assignees
Labels
AgencySpecific to the Agency APISpecific to the Agency APIdocumentationdocumentation change can be for code and/or markdown pagesdocumentation change can be for code and/or markdown pagesminor updateA change that is minor and should require little discussion, or is a maintenance/readme/typo update.A change that is minor and should require little discussion, or is a maintenance/readme/typo update.