Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 771 Bytes

README.md

File metadata and controls

32 lines (30 loc) · 771 Bytes

FlutterWorkshop_API

API created to be used for the flutter workshop built in Express Js.

Routes

Different routes you can use in this API

GET /products/all

Get all products in database

POST /products/create

Create a new product in database with this model :

productschema = {
name : String,
description : String,
image: String,
price: Number,
}
PUT /products/update/id

Edit an existing product identified in database with its id according to this model :

productschema = {
name : String,
description : String,
image: String,
price: Number,
}
DELETE /products/delete/id

Delete an existing product identified in database with its id