Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harvest 2.0 Original Metadata API route #4773

Closed
1 task
jbrown-xentity opened this issue Jun 3, 2024 · 2 comments
Closed
1 task

Harvest 2.0 Original Metadata API route #4773

jbrown-xentity opened this issue Jun 3, 2024 · 2 comments
Labels
H2.0/Harvest-Flask Front-end webapp & APIs

Comments

@jbrown-xentity
Copy link
Contributor

jbrown-xentity commented Jun 3, 2024

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

  • GIVEN the harvester2.0 API is available and the route /harvest_record/raw/{id} is created
    WHEN a legitimate ID is used to hit the API at /harvest_record/raw/{id}
    THEN the original metadata is returned with correct formatting (ie xml, json, etc with correct content type)

Background

Related to #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.

@jbrown-xentity jbrown-xentity added the H2.0/Harvest-Flask Front-end webapp & APIs label Jun 3, 2024
@hkdctol hkdctol moved this to H2.0 Backlog in data.gov team board Jun 6, 2024
@hkdctol hkdctol moved this from H2.0 Backlog to 📟 Sprint Backlog [7] in data.gov team board Jun 6, 2024
@hkdctol hkdctol moved this from 📟 Sprint Backlog [7] to H2.0 Backlog in data.gov team board Jun 6, 2024
@btylerburton btylerburton moved this from H2.0 Backlog to 📥 Queue in data.gov team board Oct 10, 2024
@btylerburton
Copy link
Contributor

btylerburton commented Oct 24, 2024

Resolved by GSA/datagov-harvester#103

@rshewitt
Copy link
Contributor

Resolved by GSA/datagov-harvester#103

closing because?...

@github-project-automation github-project-automation bot moved this from 📥 Queue to ✔ Done in data.gov team board Nov 12, 2024
@Bagesary Bagesary moved this from ✔ Done to 🗄 Closed in data.gov team board Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
H2.0/Harvest-Flask Front-end webapp & APIs
Projects
Status: 🗄 Closed
Development

No branches or pull requests

3 participants