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

Issue with get requests #6

Open
Moziezez opened this issue Jul 19, 2024 · 2 comments
Open

Issue with get requests #6

Moziezez opened this issue Jul 19, 2024 · 2 comments

Comments

@Moziezez
Copy link

the specific requests didnt work for me until i found this page in my brwoser following the link "https://yoga-api-nzy4.onrender.com/v1/":

{"base":"https://yoga-api-nzy4.onrender.com/v1","categories":"https://yoga-api-nzy4.onrender.com/v1/categories","category-by-id":"https://yoga-api-nzy4.onrender.com/v1/categories?id=value","category-by-name":"https://yoga-api-nzy4.onrender.com/v1/categories?name=value","category-by-id-level":"https://yoga-api-nzy4.onrender.com/v1/categories?id=value&level=value","poses":"https://yoga-api-nzy4.onrender.com/v1/poses","pose-by-id":"https://yoga-api-nzy4.onrender.com/v1/poses?id=value","pose-by-name":"https://yoga-api-nzy4.onrender.com/v1/poses?name=value","poses-by-level":"https://yoga-api-nzy4.onrender.com/v1/poses?level=beginner"}

Otherwise i couldnt find how to do these requests in the documentation. There is something about localhost or /poses/:id which is both incorrect. To find a pose by id for example would be axios.get("https://yoga-api-nzy4.onrender.com/v1/poses?id=3")

@Moziezez
Copy link
Author

just noticed i mixed it up with another yoga api from alex cumplido...

@Moziezez
Copy link
Author

here the curl -H "Accept: application/json" -sv http://localhost:4000/ | jq isnt working so i cannot even use anything

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

1 participant