Skip to content

💸 This is a simulation order transfer using stripe for systems microservice!

Notifications You must be signed in to change notification settings

fdhhhdjd/Node-gRPC-OMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orders Manager Systems ( Dark and Light)

Light

Image

Dark

Image

Create Orders

    curl -X POST http://localhost:3000/createOrder \
    -H "Content-Type: application/json" \
    -d '{"item": "Pizza", "quantity": 2}'

Get Order Status

    curl -X GET "http://localhost:3000/orderStatus?orderId=<order_id>"

Check stock

  curl -X GET "http://localhost:3000/checkStock?item=Pizza"

Prepare Order

    curl -X POST http://localhost:3000/prepareOrder -H "Content-Type: application/json" -d '{"orderId": "<order_id>", "item": "Pizza", "quantity": 2}'

Process Payment

    curl -X POST http://localhost:3000/processPayment -H "Content-Type: application/json" -d '{"orderId": "<order_id>", "amount": 19.99}'

About

💸 This is a simulation order transfer using stripe for systems microservice!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages