An open API service indexing awesome lists of open source software.

https://github.com/fdhhhdjd/node-grpc-oms

💸 This is a simulation order transfer using stripe for systems microservice!
https://github.com/fdhhhdjd/node-grpc-oms

grpc mongodb nodejs rabbitmq stripe-payments

Last synced: 11 months ago
JSON representation

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

Awesome Lists containing this project

README

          

## Orders Manager Systems ( Dark and Light)

# Light
![Image](docs/oms_light.png)

# Dark
![Image](docs/oms_dark.png)

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

## Get Order Status
```cmd
curl -X GET "http://localhost:3000/orderStatus?orderId="

```

## Check stock
```cmd
curl -X GET "http://localhost:3000/checkStock?item=Pizza"

```

## Prepare Order
```cmd
curl -X POST http://localhost:3000/prepareOrder -H "Content-Type: application/json" -d '{"orderId": "", "item": "Pizza", "quantity": 2}'
```
## Process Payment
```cmd
curl -X POST http://localhost:3000/processPayment -H "Content-Type: application/json" -d '{"orderId": "", "amount": 19.99}'
```