This is a template for a micro service that receives a REST request with "something" and stores all the somethings in a Postgres DB if they haven't occured in the last 7 days.
- Use the
setup-dev-db.shto build and start a docker container for the postgres and perform the migration steps necessary. - Start the local dev server (
run-dev-server.py) - Use e.g. Postman to send a request to ``http://0.0.0.0:2329/xxx/save_somethings
{
"somethings": [
{
"something_id": "{{$guid}}",
"something_id_datetime": "2021-11-9",
"something": "test"
},
{
"something_id": "{{$guid}}",
"something_id_datetime": "2021-11-9",
"something": "test"
}
]
}