Best practices and standards for StateSet API development
GET
for retrieving resourcesPOST
for creating resourcesPUT/PATCH
for updating resourcesDELETE
for removing resources/v1/work-orders
firstName
, createdAt
created_after
, sort_by
/orders
not /order
limit
: 20 (max: 100)offset
: 0Status | Usage |
---|---|
200 OK | Successful GET, PUT, PATCH |
201 Created | Successful POST creating resource |
202 Accepted | Request accepted for async processing |
204 No Content | Successful DELETE |
400 Bad Request | Invalid request parameters |
401 Unauthorized | Missing or invalid authentication |
403 Forbidden | Valid auth but insufficient permissions |
404 Not Found | Resource doesn’t exist |
409 Conflict | Resource conflict (e.g., duplicate) |
422 Unprocessable Entity | Validation errors |
429 Too Many Requests | Rate limit exceeded |
500 Internal Server Error | Server error |
503 Service Unavailable | Temporary unavailability |