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

As a user, I want to use an URL parameters to chose the response format #371

Open
tloubrieu-jpl opened this issue Aug 22, 2023 · 3 comments
Assignees
Labels
B14.1 p.should-have requirement the current issue is a requirement

Comments

@tloubrieu-jpl
Copy link
Member

Checked for duplicates

No - I haven't checked

πŸ§‘β€πŸ”¬ User Persona(s)

Users

πŸ’ͺ Motivation

...so that I don't need to update the request header Accept (which is not as easy in a web browser).

πŸ“– Additional Details

No response

Acceptance Criteria

Given
When I perform
Then I expect

βš™οΈ Engineering Details

No response

@cpiker
Copy link

cpiker commented Aug 23, 2023

As an example of format selection, what are your ideas on how to alter this URL (which points to a Cassini context product) to select XML output?
https://pds.nasa.gov/api/search/1/products/urn:nasa:pds:context:instrument_host:spacecraft.co

@tloubrieu-jpl
Copy link
Member Author

Hi @cpiker ,

Sorry for the late reply. I guess we would add a parameter ?format=application/xml to the URL.

@cpiker
Copy link

cpiker commented Nov 30, 2023

Thanks for considering it. I'd be happy to try that out when you have a test case working. If XML were available, a style sheet could be injected. The net effect would be a rather effective browser based record display, for hopefully minimal effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B14.1 p.should-have requirement the current issue is a requirement
Projects
Status: ToDo
Development

No branches or pull requests

3 participants