NASA-PDS / registry-api

Web API service for the PDS Registry, providing the implementation of the PDS Search API (https://github.com/nasa-pds/pds-api) for the PDS Registry.
https://nasa-pds.github.io/pds-api
Apache License 2.0
2 stars 5 forks source link

As an API user, I want to know the Bundle for a given Collection. #452

Closed jordanpadams closed 3 years ago

jordanpadams commented 3 years ago

For more information on how to populate this new feature request, see the PDS Wiki on User Story Development:

https://github.com/NASA-PDS/nasa-pds.github.io/wiki/Issue-Tracking#user-story-development

Motivation

...so that I can know the bundle(s) this collection belongs to.

Additional Details

See https://github.com/NASA-PDS/registry/issues/109 and https://github.com/NASA-PDS/registry/issues/108 for how the registry ingests primary and secondary products.

Acceptance Criteria

Given I have a Collection LID OR LIDVID When I perform an API query by that LIDVID for its parent bundle(s) Then I expect the API to return the primary bundle (there should be only 1) AND any secondary bundle(s) (could be many) the Collection belongs to

/products/{collection-identifier}/member-of
tloubrieu-jpl commented 3 years ago

Validated in pull request https://github.com/NASA-PDS/registry-api-service/pull/29