-
Notifications
You must be signed in to change notification settings - Fork 0
Employee Management API
This API accepts information in the body to add, edit, or delete employees from the LesliesWarehouseEmployees table. The address of all APIs will be kept out of the wiki. To make a request, use POST and format your body as follows:
{
"request":"request type",
"empID":"Employee's name with a datetime concatenated on the end.",
"name":"name of employee",
"title":"title of employee"
"empType":"employee's type (in most cases either employee or admin")
"loginID":"employee's chosen login ID"
}
Valid request types are currently put or delete, get is planned to be added in the near future. If your request type is delete, you only need request and empID. API will complete your request then return all records in the table, unless you make a mistake when deleting an employee. If a delete request is made and the empID is not found, then the API will return one record with a request of "Employee not found" and all other fields null or 0. The format the API returns the records in is List.