Api of my marketplace system integrated with blockchain, based on bsc network (bep20) and bnb payment token
NodeJs
Typescript
Firebase
Run the server
npm run dev
# ou
yarn dev
Open in http://localhost:3000
[GET] - Get all users | /users | Return json data
[GET] - Get details of specific user | /users/profile/:id | Return json data
[GET] - Get balance of wallet user | /users/profile/getbalancebnb/:id | Return json data
[POST] - Create user | /users/create | Return json message
[PUT] - Update user | /users/update/:id | Return json message
[DELETE] Delete user | /users/delete/:id | Return json message
[POST] - Login user | /login | Return token of user
[POST] - Logout user| /logout | Return message user
[POST] - Refresh Token | /refresh-token | Return json with user token and refresh token id
[GET] - Get all products | /products | Return json data
[GET] - Get details of specific product | /products/:id | Return json data
[POST] - Create product | /products/add | Return json message
[PUT] - Update product | /products/update/:id | Return json message
## Note
For delete product just update the field status to false
[GET] - Get all categories | /categories | Return json data
[GET] - Get details of specific category | /categories/:id | Return json data
[POST] - Create category | /categories/add | Return json message
[PUT] - Update category | /categories/update/:id | Return json message
[DELETE] Delete category | /categories/delete/:id | Return json message
[POST] - Send purchase requisition | /persistence/request | Return json message
[POST] - Confirm purchase request /persistence/confirm | Return json message
## Note
Only use this function after requesting a purchase order with /persistence/request