Skip to content

brownzini/GdMoney-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚙️GdMoney API

Api of my marketplace system integrated with blockchain, based on bsc network (bep20) and bnb payment token

💡 Technologies

NodeJs
Typescript
Firebase

🚀 Starting

Run the server

npm run dev
# ou
yarn dev

Open in http://localhost:3000

📚 [Documentation]

Users

[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

Authenticate

[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

Products

[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

Categories

[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

Persistence

[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

About

⚙️GdMoney API - Developed my api for marketplace with blockchain integration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published