Parameters

This chapter focuses on services for the parameters.

Get parameter

A GET to /parameters/{id} returns the parameter with the given id.

Path parameters

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

id

the id of the parameter

HTTP request

GET /api/rest/latest/parameters/47 HTTP/1.1
Accept: application/json
Host: localhost:8080

Request parameters

Parameter Description

fields

which fields of the elements should be returned (optional)

HTTP response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 441

{
  "_type" : "parameter",
  "id" : 47,
  "name" : "sample parameter",
  "description" : "<p>My parameter</p>",
  "test_case" : {
    "_type" : "test-case",
    "id" : 102,
    "name" : "sample test case",
    "_links" : {
      "self" : {
        "href" : "http://localhost:8080/api/rest/latest/test-cases/102"
      }
    }
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/rest/latest/parameters/47"
    }
  }
}

Response fields

Path Type Description

id

Number

the id of the parameter

_type

String

the type of the entity

name

String

the name of the parameter

description

String

the description of the parameter

test_case

Object

the test case this parameter belongs to

_links

Object

related links

Relation Description

self

link to this parameter