REST API: Sub collection fields
Summary
How to expand a sub collection?Content
Hello
Does anyone know how to expand / get specific fields from a sub collection?
Specifically I'd like to get all the columns for a report, without having to do a REST call for each column...
EG
/services/rest/connect/v1.4/analyticsReports
{ "items": [ { "id": 1, "lookupName": "Answer Notifications by Answer", "createdTime": "2007-02-01T00:00:00.000Z", "updatedTime": "2007-02-01T00:00:00.000Z", "links": [ { "rel": "canonical", "href": "https://service.elsevier.com/services/rest/connect/v1.4/analyticsReports/1" } ] },
...
Gets all reports, yay
/services/rest/connect/v1.4/analyticsReports?fields=name
{
"items": [
{
"id": 1,
"lookupName": "Answer Notifications by Answer",
"createdTime": "2007-02-01T00:00:00.000Z",
"updatedTime": "2007-02-01T00:00:00.000Z",
"name": "Answer Notifications by Answer",
"links": [
{
"rel": "canonical",
"href": "https://service.elsevier.com/services/rest/connect/v1.4/analyticsReports/1"
}
]
Tagged:
1