- Support REST-API following SCIM 2.0
- Using object model to define the resource
- Using HTTP Status Code to verify the success/failure of the request
Timereg API using JWT authenticate, token will be included in query string
GET /api/v2/user?token={token} HTTP/1.1 or HTTP request body
POST /api/v2/user HTTP/1.1
{
"token": "{token}"
}or HTTP request header x-access-token
POST /api/v2/user HTTP/1.1
x-access-token: {token}If
tokenis not provided or invalid, the request will be responded immediately with HTTP Status Code401 Unauthorized
Get list of users in system with filters
[not implement yet]
An array of User
Get information of a user
| HTTP Status Code | Reason |
| 200 | User found and returned in body |
| 404 | User not found |
An object of User
Get all timereg records of a user
| key | type | required | description |
| fromDateTime | datetime | no | Get timereg records from this datetime |
| toDateTime | datetime | no | Get timereg records until this datetime |
An array of Timereg
Get all billable accounts of a user
An array of ProjectPhase
Get all timereg records with filters
| key | type | required | description |
| userId | string | no | ID of filtered user |
| timeregPeriodId | string | no | ID of filtered timereg period |
| projectPhaseId | string | no | ID of filtered project phase |
| fromDateTime | datetime | no | Get timereg records from this datetime |
| toDateTime | datetime | no | Get timereg records until this datetime |
An array of Timereg
Create a new timereg record
An object of Timereg
| HTTP Status Code | Reason |
| 200 | Timereg record was saved successfully |
| 400 | Bad Request, check error message in response body for detail |
| 409 | Conflict, the from/toDateTime overlap with another record |
An object of created Timereg
Get a timereg detail
| HTTP Status Code | Reason |
| 200 | Timereg record found and returned in body |
| 404 | Timereg record not found |
An object of found Timereg
{
- id String timereg's ID
- userId String
- timeregPeriodId String
- fromDateTime DateTime
- toDateTime DateTime
- projectPhaseId String
- detail String
}
{
- id String user's ID
- firstName String
- lastName String
- gender String is one value of [male, female]
- dateOfBirth DateTime
- startWorking DateTime user's start working date
- teamsUri String string url to get all user's teams
- email String personal email
- globeteamEmail String
- rangstrupEmail String
- dropboxEmail String
- liveEmail String
- googleEmail String
- skypeName String
- phone String
- billableAccountsUri String url to get all user's billable accounts (project phases)
- timeregsUri String url to get all user's timeregs
}
{
- id String project phase's ID
- name String project phase's name
- projectId String ID of the project followed by phase
}