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.
Webshop API routes are as follows:
Add with productId as follows:
{ "pId": "" }
Delete with productId as follows:
{ "pId": "" }
Delete with cartId as follows:
{ "cartId": "" }