Requirement Package Children

Requirement Package Children

Resource: Requirement Package Children ( /api/requirementpackage/{id}/children )

Requirement Package resource

This resource supports the following methods: GET

 

Methods

GET


Retrieves the children of the requirement package.

This method supports the OData parameters $filter, $top, $take, $orderby and $inlinecount. See OData Topic for more details.

Required Permissions

  • TestManagement/ManageRequirements/View

Supported Expansions

For more details on expansions, please see the Expand help topic.

Status Codes

These are the expected status codes returned by the service. In addition, some other status codes may be returned if either an internal error occurs or there is an authentication issue (such as an expired OAuth token).

Status

Description

200 - OK

Returned if the request was completed successfully.

403 - Forbidden

Returned if the user does not have permission to create requirement packages in the target project.

404 - NotFound

Returned if the package does not exist.

 

Example - GET

 

Example of retrieving all child packages for package.

Request Headers

Key

Value

Description

Accept

application/json

 

Request Parameters

Key

Value

Description

{id}

4bb709c2-e0e7-4af3-9f60-a045016a9610

GUID Identifier of the package to retrieve children for.

Response Headers

Key

Value

Description

Content-Type

application/json; charset=utf-8

 

Response Body

{ "Items": [ { "Id": "2d33ee96-7634-4363-891f-d90a15709bb9", "ParentId": "4bb709c2-e0e7-4af3-9f60-a045016a9610", "Name": "Cycle 1", "OrderNumber": 1, "Expands": [ "Children", "Parent", "Project" ], "Self": "http://localhost/api/requirementpackage/2d33ee96-7634-4363-891f-d90a15709bb9", "Links": [ { "Href": "http://localhost/api/requirementpackage/2d33ee96-7634-4363-891f-d90a15709bb9/children", "Rel": "Children" }, { "Href": "http://localhost/api/requirementpackage/4bb709c2-e0e7-4af3-9f60-a045016a9610", "Rel": "Parent" } ] }, { "Id": "ed07f8a1-3ffa-4f25-bc28-0dae55650205", "ParentId": "4bb709c2-e0e7-4af3-9f60-a045016a9610", "Name": "Cycle 2", "OrderNumber": 2, "Expands": [ "Children", "Parent", "Project" ], "Self": "http://localhost/api/requirementpackage/ed07f8a1-3ffa-4f25-bc28-0dae55650205", "Links": [ { "Href": "http://localhost/api/requirementpackage/ed07f8a1-3ffa-4f25-bc28-0dae55650205/children", "Rel": "Children" }, { "Href": "http://localhost/api/requirementpackage/4bb709c2-e0e7-4af3-9f60-a045016a9610", "Rel": "Parent" } ] } ] }

Status Code

200 - OK