Sprints
This chapter focuses on services for the sprints.
Endpoints only contain minimal information for this version. More information and endpoints will be available in future versions.
Get sprint
A GET
to /sprints/{id}
returns the sprint with the given id.
Path parameters
Parameter | Description |
---|---|
|
the id of the sprint |
HTTP request
GET /api/rest/latest/sprints/256 HTTP/1.1
Accept: application/json
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 266
{
"_type" : "sprint",
"id" : 256,
"name" : "sample sprint",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/sprints/256"
},
"project" : {
"href" : "http://localhost:8080/api/rest/latest/projects/19"
}
}
}
Response fields
Path | Type | Description |
---|---|---|
|
|
the type of this entity |
|
|
the id of this sprint |
|
|
the name of this sprint |
|
|
related links |
Links
Relation | Description |
---|---|
|
link to this sprint |
|
link to the project of this sprint |
Get all sprints
A GET
to /sprints
returns all the sprints that the user is allowed to read.
HTTP request
GET /api/rest/latest/sprints?size=2&page=0 HTTP/1.1
Accept: application/json
Host: localhost:8080
Query parameters
Parameter | Description |
---|---|
|
number of the page to retrieve (optional) |
|
size of the page to retrieve (optional) |
|
which attributes of the returned entities should be sorted on (optional) |
|
which fields of the elements should be returned (optional) |
|
which type of the element should be returned (optional) |
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1066
{
"_embedded" : {
"sprints" : [ {
"_type" : "sprint",
"id" : 256,
"name" : "sample sprint",
"reference" : "sample reference",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/sprints/256"
}
}
}, {
"_type" : "sprint",
"id" : 257,
"name" : "sample sprint 2",
"reference" : "sample reference 2",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/sprints/257"
}
}
} ]
},
"_links" : {
"first" : {
"href" : "http://localhost:8080/api/rest/latest/sprints?page=0&size=2"
},
"self" : {
"href" : "http://localhost:8080/api/rest/latest/sprints?page=0&size=2"
},
"next" : {
"href" : "http://localhost:8080/api/rest/latest/sprints?page=1&size=2"
},
"last" : {
"href" : "http://localhost:8080/api/rest/latest/sprints?page=1&size=2"
}
},
"page" : {
"size" : 2,
"totalElements" : 4,
"totalPages" : 2,
"number" : 0
}
}
Response fields
Path | Type | Description |
---|---|---|
|
|
the list of elements for that page |
|
|
the page size for that query |
|
|
total number of elements the user is allowed to read |
|
|
how many pages can be browsed |
|
|
the page number |
|
|
related links |
Links
Relation | Description |
---|---|
|
link to the first page (optional) |
|
link to the previous page (optional) |
|
link to this page |
|
link to the next page (optional) |
|
link to the last page (optional) |
Delete campaign
A DELETE
to /sprints/{ids}
deletes one or several sprints with the given ids.
Path parameters
Parameter | Description |
---|---|
|
the sprint ids to delete |
HTTP request
DELETE /api/rest/latest/sprints/44,59 HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080