Payment processing service
Use docker-compose to run the service docker-compose --project-name orderservice --x-networking up
. The --x-networking
flag enables the new networking features allowing the application to talk to the mysql database. The --project-name
flag sets the project name, by default compose will use the parent folder name.
##API
URL | METHOD | DESCRIPTION |
---|---|---|
/order | POST | Place a new order (checkout) |
/order | GET | Get all orders |
/order/:id | GET | Get order by id |
/install | GET | Setup sample database |
Sample document to post to the /create api
{
"customerId":"bmscholl",
"email": "[email protected]",
"status":0,
"total": 22.40,
"shippingAddress":"2513 14th PL NE\nMill Creek WA 98012"
}
Deploy to mesos
curl -s -XPOST localhost:8080/v2/apps [email protected] -H "Content-Type: application/json"
curl -s -XPOST localhost:8080/v2/apps [email protected] -H "Content-Type: application/json"