This user guide only applies if your account and project is on our new platform, i.e. if your project's URL begins with https://<your-account>.xp-dev.com rather than https://xp-dev.com. If your account is on our old platform, you should be using this user guide instead.
Each Task Hour Object has the following attributes:
Attribute | Description |
---|---|
id | Unique Task Hour ID |
user | User object of the user that registered this Task Hour |
task | Task ID that the Task Hour belongs to |
hour | Number of hours registered |
GET
request to https://<your-account>.xp-dev.com/api/v1/taskhours/task/<task-id>
:
curl https://<your-account>.xp-dev.com/api/v1/taskhours/task/2
Responses will be a list of Task Hour Objects:
[
{
"id":6,
"hour":4.0,
"user": {
"id": 20,
"username": "developer"
},
"task": {
"id": 2
}
},
...
]
GET
request to https://<your-account>.xp-dev.com/api/v1/taskhours/story/<story-id>
:
curl https://<your-account>.xp-dev.com/api/v1/taskhours/story/3
Responses will be a list of Task Hour Objects.
GET
request to
https://<your-account>.xp-dev.com/api/v1/taskhours/project/<project-id>
:
curl https://<your-account>.xp-dev.com/api/v1/taskhours/project/3
Responses will be a list of Task Hour Objects.
POST
request to https://<your-account>.xp-dev.com/api/v1/taskhours
with the
following attributes:
Mandatory:
Example request:
curl -X POST -H 'Content-Type: application/json' -d '{"hour":14.0,"task":{"id":2}}' https://<your-account>.xp-dev.com/api/v1/taskhours
Responses will be in the form of a single Task Hour Object
GET
request to https://<your-account>.xp-dev.com/api/v1/taskhours/<taskhour-id>
.
For example:
curl https://<your-account>.xp-dev.com/api/v1/taskhours/6
Responses will be in the form of a single Task Hour Object
PUT
request to https://<your-account>.xp-dev.com/api/v1/taskhours/<taskhour-id>
with the following attributes:
Mandatory:
Example request:
curl -X PUT -H 'Content-Type: application/json' -d '{"hour":14.0}' https://<your-account>.xp-dev.com/api/v1/taskhours/6
Responses will be in the form of a single Task Hour Object
DELETE
request to https://<your-account>.xp-dev.com/api/v1/taskhours/<taskhour-id>
:
curl -X DELETE https://<your-account>.xp-dev.com/api/v1/taskhours/6
Feel free to contact us if you need any assistance.