Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current Restore this Version View Page History

Version 1 Current »

//POST /orders
//
// - [ ] Setup loadbalancer
// - [x] Config Kong gateway
OrderController.create(payload) {

// Create an immutable order
// 1. Validate payload
// 1. Log with x-correlationid
OrderService.create(payload) {
// | id | Prod_Name | Price | Inserted_At |
// |----|-----------|-------|-------------|
// |123 | book 1 | $10.00| 2020-06-30 |
OrderRepo.save()
}
}