diff --git a/lib/middleware/response-json-api.js b/lib/middleware/response-json-api.js index e801507..59bb974 100644 --- a/lib/middleware/response-json-api.js +++ b/lib/middleware/response-json-api.js @@ -9,6 +9,7 @@ const JSON_API_KEYS = ['id', 'type', 'relationships', 'meta', 'links']; // options.bus - Object *required* // options.baseUrlPrefix - String ex: "/v2". +// options.allowPartialIncluded - Boolean (default == false) // options.excludePortFromLinks - Boolean (default == false) If true, don't // include the port number in links. module.exports = function (options) { diff --git a/lib/services/catalog/controllers/catalog-item-controller.js b/lib/services/catalog/controllers/catalog-item-controller.js index 6f476cb..9fa56ba 100644 --- a/lib/services/catalog/controllers/catalog-item-controller.js +++ b/lib/services/catalog/controllers/catalog-item-controller.js @@ -29,6 +29,10 @@ class CatalogItemController extends Controller { .then(channel => { const args = {type, id}; + if (req.query.include) { + args.include = req.query.include.split(','); + } + // When no platform ID is present in the JWT during an admin role request, // the query for the resource is made directly to the store instead of through // the catalog service.