- User Guide & Application Administration Guide
Earlier Versions of this Documentation
Support & Bug Fixes
Enterprise Tester 6.7.1
The Enterprise Tester REST API makes extensive use of a feature called Expand (also known as Expansions) - resources that support expanding will return the list of available expansions in a property of the representation, called "Expand" - here is an example of a "project" resource with a set of available expand values:
When making a request, you can include a query parameter called $expand that provides a comma separated list of expands you wish to have expanded in the response - so for example, to get the priority and status picklists back with the project, you would use a request like this:
In the response those properties will be expanded, and will no longer be listed in the "Expands" property as available properties to expand.
Expansions can be more than one level deep. Here is an example of getting a project, with its top level requirement package expanded, and each of those packages children collection expanded as well.
We do this by using a period (.) to navigate to the child expansion:
As you can see the child packages are then expanded as well:
For each method supported by a resource (GET, POST, PUT) documented within the help system, we also include details of the available expansions.
You are not limited to expanding to one or two levels - to expand many levels of depth, you can continue to use a period character between each level i.e. RequirementPackages.Children. Children will return the requirement package, with its children and those children's children.
As we can see the multiple levels are expanded as requested:
When exploring the API it can be useful to expand everything, so you can see what information is available - this can be done through the pseudo-expansion "All" i.e.
This will automatically be replaced with all available expands in the response:
You can use multiple levels of "All" as well - but we strongly advise against using "All" when writing code that interacts with the API as it will cause very large payloads to be returned and negatively impact on the performance of Enterprise Tester.