API Employers

See API Specification

Employers POST (create)

Version Added: 21.4

Creates a new Employer.

EmpName: Required. The Employer's name.

Example Request:
POST /employers

{
"EmpName": "James Smith"
}

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)

Employers PUT (update)

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."