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

Get request with param value more than one word showing as invalid url #3

Open
Kamalakar-Gavali opened this issue Nov 6, 2021 · 1 comment

Comments

@Kamalakar-Gavali
Copy link

HI whenver we are passing params for example author and its value is more than 1 word so we need to warp it in string("")
but its giving error as invalid url.
https://quote-garden.herokuapp.com/api/v3/quotes?author="Samuel Butler"

attaching screenshot for your reference
image

@FirminoMassango
Copy link

In order to retrieve all quotes from author you don't need to pass the name (first name and last name) inside quotes, instead of doing this:

https://quote-garden.herokuapp.com/api/v3/quotes?author="Samuel Butler"

You need to get rid of quotes, so you will use a query like this:

https://quote-garden.herokuapp.com/api/v3/quotes?author=Samuel Butler

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