You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given I have a product LID OR LIDVID When I perform an API query by that LIDVID for its collections Then I expect the API to return the primary collection (there should be only 1) AND any secondary collections (could be many) the product belongs to
Sub-tasks
Update Swagger API
Implement in API Server
NOTE: This is now done by /products/{identifier}/member-of
The text was updated successfully, but these errors were encountered:
jordanpadams
changed the title
As a user, I want to know the Collection for a given Product.
As an API user, I want to know the Collection for a given Product.
Mar 26, 2021
jordanpadams
changed the title
As an API user, I want to know the Collection for a given Product.
As an API user, I want to know the Collection(s) for a given Product.
Mar 26, 2021
@al-niessner I have just tested this elasticsearch request to get the collection lidvid of a product:
{
"query": {
"match": {
"product_lidvid": "urn:nasa:pds:izenberg_pdart14_meap:data_eetable:ele_evt_12hr_orbit_2011-2012::1.0"
}
},
"size": 0,
"aggs": {
"collection_lidvid": {
"terms": {
"field": "collection_lidvid"
}
}
}
}
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 all collections a product is referenced by
Additional Details
Notional API Design:
See NASA-PDS/registry#109 and NASA-PDS/registry#108 for how the registry ingests primary and secondary products.
Acceptance Criteria
Given I have a product LID OR LIDVID
When I perform an API query by that LIDVID for its collections
Then I expect the API to return the primary collection (there should be only 1) AND any secondary collections (could be many) the product belongs to
Sub-tasks
NOTE: This is now done by
/products/{identifier}/member-of
The text was updated successfully, but these errors were encountered: