Practice App - bounswe/bounswe2020group1 GitHub Wiki

http://52.20.110.175:5000/

The functionality of our practice app is as follows:

A user can add a product or list all the products already exists. He or she can also view the product details and comments about a product on a separate page. The price of the products can be viewed in different currencies on the product details page.

API documentation

/ product / < product-id >

The URL is used to list the informations of the product with the given product id

METHOD: GET

Sample query: http://52.20.110.175:5000/product/3

/ product / < product-id >

The URL is also used to make comments about the corresponding product using the POST method (comment form in the page).

METHOD: POST

Sample query: http://52.20.110.175:5000/product/2

*Send the request with a form that contains corresponding parameters

/createproduct

Create product command redirects you to the product adding page which consists of a form to be filled with product info.

METHOD: POST

Sample query: http://52.20.110.175:5000/createproduct

*Send the request with a form that contains corresponding parameters

/search

Search endpoint is used to list the products whose names contains the provided keyword or a semantically close word to the keyword . The searched products are listed in the main page.

Method: GET

http://52.20.110.175:5000/search?keyword=book&json=True

http://52.20.110.175:5000/search?keyword=shoe