https://oxtwzrrqrg.execute-api.us-west-2.amazonaws.com/development
Dates in MM/DD/YYYY format. Remember to URIEncode.
/getEmployeeTimesheet?start_date=<value1>&end_date=<value2>&uid=<value3>
Retrieves all timesheet entries from the date range of an employee.
/getEmployeeTimesheet?uid=<value3>
Retrieves all timesheet entries of an employee.
/postEmployeeTimesheet
{
"submission": [
{
"uid": "string",
"date": "MM/DD/YYYY",
"start_time": "00:00 AM",
"end_time": "00:00 PM",
"break_duration": 60
}, {
"uid": "string",
"date": "MM/DD/YYYY",
"start_time": "00:00 AM",
"end_time": "00:00 PM",
"break_duration": 60
},
]
}
https://9zsjgjfqlh.execute-api.us-west-2.amazonaws.com/development
/getAllProjects
Retrieves all projects. This can be used to create a table of all existing projects.
/getProjectMembers?projectId=<id of project>
This route is used to retrieve all members of a specific projects to be displayed to admin, or have a page for all users to see who's is assigned to what project.
/getAssignedProjects?uid=<uid of user>
This route is used to retrieve all projects a user is assigned to. This can be used on the timesheet submission page to associate the worked weeks to a specfically assigned project.
/getProjectWeeks?projectId=<id of project>&uid=<uid of user>
This route is used to retrieve all weeks a user worked on a specific project. Can be used to get date ranges and these ranges can be passed to EmployeeTimeSheet API to retrieve total hours worked on a project.
/putProject
This route is used to create a project. The projectId is autogenerated based on time and hashed. The project name can also be updated given the projectId.
{
"name": "Name of project"
}
/putJoinProject
This route is used for a user/employee to join a project.
{
"projectId": "Id of project",
"uid": "UID of user"
}
/putProjectWeek
This route is used in the timesheet submission page where users are able to select which project they worked on for the week.
{
"projectId": "Id of project",
"uid": "UID of user",
"start_week_date": "mm/dd/yyyy",
"end_week_date": "mm/dd/yyyy"
}
/deleteJoinProject
This route is used to remove a user/employee from a project. This does not do a cascading delete operation.
{
"projectId": "Id of project",
"uid": "UID of user"
}