TimeTrackingService API Documentation

Overview: The goal of TimeTrackingService is used to track the time activities across the different line of businesses and help them out to use this service as per their time entry needs.

TTS swagger page is available in SCED from the following location:

https://ncdtimetrackingserviceapp01.azurewebsites.net/swagger/index.html

 

TTS supports the following API endpoints:

  1. GetAccumulatedTimes: It will return the time spent in hours for all the users and work items.

Type: GET

Response:

{ "usersTime": [ { "workitem": 0, "username": "string", "accumulatedtime": 0 } ], "workflowsTime": [ { "workitem": 1000001, "username": "571879ae-52c5-4644-84a3-b13f7391a13f", "accumulatedtime": 0.01 } ] }

 

2. AddStartTimeEntry: It will add the new time entry with start time only based on work item and user.

Type: POST

Response:

{ "itemid": 1000001, "workitemname": null }

 

3. AddCloseTimeEntry: It will update the time entry with end time based on end time null, work item id and user.

Type: POST

Response:

{   "itemid": 0,   "workitemname": null }

 

4. GetWorkItemAccumulateTime: It will return the whole time spent based on work item id.

Type: GET

Response:

 

5. SubmitWorkItemTimes: It will submit the work items based on request body

Type: POST

Request_Body:

 

Response:

 

6. GetWorkItemAdjustedTimes: It will return the time spend based on work item id.

Type: GET

Response:

 

7. GetWorkItemEntry: It will return all the time entries based on UserId.

Type: GET

Response:

 

8. SubmitAdminTimeSpent: It will insert/update the time entry based on request body.

Type: POST

Request_Body:

Response:

 

9. DeleteTimeEntry: It will delete the time entry based on time entry id.

Type: DELETE

Response:

 

10. UpdateTimeEntryStatus: It will update the time entry based on Time Entry Id and Status Id.

Type: PUT

Response: