Giter Site home page Giter Site logo

algodomain-task's Introduction

algoDomain-task

This repository have solution of my task.

Step to use this APIs -> 1-> install dependencies like Express, mongoose ,nodemon using the commond npm i express npm i mongoose npm i nodemon

After installation of all dependencies run command nodemon app.js in command prompt. make sure to run your project at PORT 8000.

open Postman. create a new collection in Postman. now use following commond for maniputation with REST API.

For Adding products

localhost:8000/addaproduct:1234

For adding multiple products

localhost:8000/addMultipleproduct:510

Finding product by name

localhost:8000/productByName:Dell Latitude 5420

Finding product by category

localhost:8000/productByCategory:Electronics

Finding product by type

localhost:8000/productByType:Laptop

Finding product with a price range

localhost:8000/productByRange:200:1000

**Finding product by seller with his particular id **

localhost:8000/getProduct:4564566

Updating a product by seller

localhost:8000/update:1234:625f6afcd7664b957b122ec3

deleting a product by seller

localhost:8000/delete:510:625e5db19800c705fe38fb70

I have uploaded database in .json with name product.json

Thanks.

algodomain-task's People

Contributors

nitishpratap avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.