Projection Support
Use projections to filter content in the response dynamically.
Notes: Projections do not currently support filtering nested JSON output.
Examples
Projections can be performed by adding 'select' query parameters. Use comma-separated values for a multi-select query.
Without using Projections
The following URL:
http://localhost:7011/primeapi/restapi/v16.2/resource/2001
Might provide JSON output similar to the following:
{ "resourceName": "John Smith", "calendar": 2001, "resourceType": "LABOR", "resourceId": 2001, "resourceClass": "RESOURCE", "defaultUnitsPerHour": 1, "calendarName": "Standard 5 Day Workweek", "resourceCode": "Level1", "emailAddress": "john.smith@company.example.com", "codeValuesResource": [], "workspace": 1, "resourceTitleName": "Manager", "resourceStatus": "ACTIVE", "workspaceName": "ROOT" }
Projections using a Single Parameter in the Query
The following URL:
http://localhost:7011/primeapi/restapi/v16.2/resource/2001?select=resourceName
Might provide JSON output similar to the following:
{ "resourceName": "John Smith" }
Projections using Multiple Parameters in the Query
The following URL:
http://localhost:7011/primeapi/restapi/v16.2/resource/2001?select=resourceName,resourceId,resourceClass
Might provide JSON output similar to the following:
{ "resourceName": "John Smith", "resourceId": 2001, "resourceClass": "RESOURCE" }