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

http://localhost:5000/search_product not found #3

Closed
hardcore opened this issue Dec 1, 2022 · 3 comments
Closed

http://localhost:5000/search_product not found #3

hardcore opened this issue Dec 1, 2022 · 3 comments

Comments

@hardcore
Copy link

hardcore commented Dec 1, 2022

Hi,

I've started the docker container with docker compose and http://localhost:5000/ works fine but neither http://localhost:5000/search_product nor http://localhost:5000/get_category_offers.

So how to create API calls? Please help :)

Thanks a lot for your work!

@EliaTolin
Copy link
Owner

Hello,
Thanks for you issue.
The correct path is this:

http://127.0.0.1:5000/api/v1/pa_amazon/search_product

I add the the prefix in the readme.

@hardcore
Copy link
Author

hardcore commented Dec 2, 2022

Thanks a lot! :-)

I hope you can give me a little support. I want to get a JSON response from amazon pa api over HTTP request. How can I do this with for example an ASIN?

If I use "http://127.0.0.1:5000/api/v1/pa_amazon/search_product" I get an error code 405.

127.0.0.1 - - [02/Dec/2022 10:31:30] "GET /api/v1/pa_amazon/search_product HTTP/1.1" 405 -
Here is my request:

➜ curl -X GET http://127.0.0.1:5000/api/v1/pa_amazon/search_product
<!doctype html>
<html lang=en>
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The method is not allowed for the requested URL.</p>

Thanks a lot!

@EliaTolin EliaTolin reopened this Dec 2, 2022
@EliaTolin
Copy link
Owner

Hello,
I help you.

You forget the parameters for this request. Check here the parameters

I understand that the documentation in readme is not clear.
I alone to create this webserver.

But i would like it help other developers to make new app.

You are welcome.

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