This is part of the ddd-playground project.
The project consists of many dockerised services written in different languages and exposing APIs.
An integrator component written in Ballerina lang will expose transformed and combined data of those APIs.
The application is a product service exposing an basic API. It is written in Go.
curl --location --request GET 'http://localhost:8081/product'
[
{
"id":1,
"name":"Red Chair",
"category_id":1
},
{
"id":2,
"name":"Blue Table",
"category_id":2
},
{
"id":3,
"name":"Yellow Carpet",
"category_id":3
}
]curl --location --request GET 'http://localhost:8081/product/2'
{
"id":2,
"name":"Blue Table",
"category_id":2
}curl --location --request POST 'http://localhost:8081/product' -d '{"name":"Yellow Chair", "category_id":1}'Run make init to initialize your app.
Run make install-fixtures to import dummy data.
make startmake stop