GSA / data.gov

Main repository for the data.gov service
https://data.gov
Other
547 stars 87 forks source link

Harvest 2.0 Original Metadata API route #4773

Open jbrown-xentity opened 3 weeks ago

jbrown-xentity commented 3 weeks ago

User Story

In order to have the originally harvested metadata, geospatial metadata users want an API that allows to get the original harvested metadata.

Acceptance Criteria

Background

Related to https://github.com/GSA/data.gov/issues/4749, this ticket is required before #4749 can be taken on. Should consider updating the Flask Routes documentation

Security Considerations (required)

None

Sketch

Simply do the lookup in the DB for the information and return it. 404 if the resource is not in the DB. Make sure to setup the content type correctly for the different metadata standard, whether SML or JSON.