API Employers
Version Added: 21.4
Creates a new Employer.
EmpName: Required. The Employer's name.
Example Request:
POST /employers
Example Response:
{
"EmployerNum": 4,
"EmpName": "James Smith"
}
201 Created
(no "location" Header is returned because there is no GET method yet)
400 (Missing or invalid fields)
Version Added: 21.4
Updates the Employer's name.
EmployerNum: Required in the URL.
EmpName: Required. The Employer's name.
Example Request:
PUT /employers/4
{
"EmpName": "James Smith"
}
Example Response:
200 OK
400 BadRequest (with explanation)
404 NotFound "EmployerNum not found."