GithubHelp home page GithubHelp logo

ayngie / assignment-api-mongodb_restapi-webshop Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 129 KB

Andra individuella inlämningsuppgiften i API-utvecklingskursen, Medieinstitutet (termin 2), Stockholm

JavaScript 86.20% HTML 13.80%

assignment-api-mongodb_restapi-webshop's Introduction

MongoDb Webshop

Short description:

My second individual assignment in my API-development course was creating a MongoDb (+ mongoose) REST-API for a webshops products & shoppingcarts.

I used Postman for my routes (see routes below).

Frontend developer studies, Medieinstitutet, Stockholm.


Screenshot from project:

Demonstration of project


Techniques used

VSCode badge HTML5 badge JavaScript badge GitHub badge MongoDb Prettier


Routes

Webshop API routes are as follows:

Product Routes

GET /api/v1/products - Get all products
GET /api/v1/products/productId - Get product by id

Cart Routes

GET /api/v1/carts - Get all carts
GET /api/v1/carts/cartId - Get cart by id
POST /api/v1/carts - Create new cart
PUT /api/v1/carts/cartId - add Item To Cart

Add with productId as follows: { "pId": "" }

DELETE /api/v1/carts/cartId/productId - delete Item From Cart

Delete with productId as follows: { "pId": "" }

DELETE /api/v1/carts/cartId - Delete cart (by id)

Delete with cartId as follows: { "cartId": "" }


assignment-api-mongodb_restapi-webshop's People

Contributors

ayngie avatar

Watchers

 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.