Table of Contents | ||||
---|---|---|---|---|
|
...
Request to process the request using a token in the headers
Headers
Наприклад:
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
...
Check end_date>contract.end_date and end_date>now()
in case error return 422 - "Invalid end_date"
Processing
...
WS sets data at DB from reuest
field | value |
---|---|
end_date | $end_date |
updated_at | now() |
updated_by | $.user_id |
Response structure
See on Apiary
...
Expand | ||
---|---|---|
| ||
|
Response mapping
...
field
...
value
...
end_date
...
$end_date
...
updated_at
...
now()
...
updated_by
...
$.user_id
Post-processing processes
API paragraph not found
HTTP status codes*
HTTP status code | Message | What caused the error |
---|---|---|
200 |
|
|
...