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
400 Bad Request (with explination)

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