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

Remove photos entry from rovers manifests result support when query #176

Open
softwarega opened this issue Dec 27, 2022 · 1 comment
Open

Comments

@softwarega
Copy link

Imagine that we need to show info about rovers in a home page, and we need to do it via their manifest, but, in this query we are getting the necessary info and the photos too, so it is more expensive than if we will have a way to say to the api, hey remove the entry photos, i don't need that at this time, it will take so long time as i need for just show the rover info.

I think we could have this approach adding a URL param maybe no_photos as a bolean, by default, the query return all, but if we pass the param, then the entry photo not come into response.

Something like this:
https://api.nasa.gov/mars-photos/api/v1/manifests/opportunity?api_key=DEMO_KEY&no_photos=true

@juanprog97
Copy link

Hey, if you only want information about the rovers without photos, you can try this: https://api.nasa.gov/mars-photos/api/v1/rovers/curiosity. With this URL, you will only see details about the rover without the photos parameter, and the response time will be shorter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants