docker-compose up -d
docker ps
curl localhost/list_events
Entrer dans le conteneur du client
docker exec -it $(docker ps | grep cli-client | head -c 12) /bin/sh
curl -X POST web/add_event?start=12345678\&stop=177777777\&tags=cool,hello,world
{
"event": "{'start': '12345678', 'stop': '177777777', 'tags': ['cool', 'hello', 'world'], '_id': ObjectId('638e154143e1db94e5aec5e2')}",
"message": "Your event has been added",
"success": true
}
curl web/list_events
{
"data": [
"{'_id': ObjectId('638e154143e1db94e5aec5e2'), 'start': '12345678', 'stop': '177777777', 'tags': ['cool', 'hello', 'world']}",
"{'_id': ObjectId('638e159043e1db94e5aec5e3'), 'start': '12345678', 'stop': None, 'tags': ['hello', 'world']}"
],
"success": true
}
curl web/remove_events
{
"message": "2 documents deleted.",
"success": true
}