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 Get sprint

A GET to /sprints/{id} returns the sprint with the given id.

Path parameters

Table 1. /api/rest/latest/sprints/{id}
Parameter Description

id

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

_type

String

the type of this entity

id

Number

the id of this sprint

name

String

the name of this sprint

_links

Object

related links

Relation Description

self

link to this sprint

project

link to the project of this sprint

get 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

page

number of the page to retrieve (optional)

size

size of the page to retrieve (optional)

sort

which attributes of the returned entities should be sorted on (optional)

fields

which fields of the elements should be returned (optional)

type

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

_embedded.sprints

Array

the list of elements for that page

page.size

Number

the page size for that query

page.totalElements

Number

total number of elements the user is allowed to read

page.totalPages

Number

how many pages can be browsed

page.number

Number

the page number

_links

Object

related links

Relation Description

first

link to the first page (optional)

prev

link to the previous page (optional)

self

link to this page

next

link to the next page (optional)

last

link to the last page (optional)

delete Delete campaign

A DELETE to /sprints/{ids} deletes one or several sprints with the given ids.

Path parameters

Table 1. /api/rest/latest/sprints/{ids}
Parameter Description

ids

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