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 Product(s) that belong to a given Bundle. #453

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 <why do you want to do this?>

Additional Details

Notional API Design:

GET /products/{bundle-identifier}/members/members

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.

Note: The logic here is a little funky:

  1. find all primary and secondary collections for the bundle
  2. find all primary and secondary products for those collections a. if product comes from secondary collection, ALL products from those collections should be considered secondary

Acceptance Criteria

Given I have a bundle LID OR LIDVID When I perform an API query by that LIDVID for its products Then I expect the API to return the primary product(s) AND any secondary product(s) for that bundle

Sub-tasks

tloubrieu-jpl commented 3 years ago

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