This store api created to get all available items from the store database. Ex- A store having wooden chair, dining table, bench etc with details of company name , featured, rating, price.
https://store-api-1211.onrender.com
Wait for few seconds, if url is loading, This happens because of free hosting services.
If you want to work on this project , clone this repo
git clone "https://github.com/purvilnakrani/Store-API.git"
Open this project on your local IDE and in the terminal do this commands one by one
npm install
npm run start
Before running code do not forget to change database connection url, To get that url go to mongodb atlas cluster -> connect -> driver
Ex:- MONGODBURI: mongodb+srv://<user_name>:<password>@mongodb_connection_string/database_name
Base URL
localhost:3000/api/v1
- get list of all products from store
GET /products
- get list of static products from store
GET /products/static
- Url query searching
GET /products?name=bench&featured=true
- Url query searching (page)
GET /products?featured=false&page=2
- Url query searching (enum)
GET /products?featured=false&company=ikea
- Url query searching (Numeric filters)
GET /products?numericFilters=price<100,rating>=4
Server: Node, Express database: MongoDB