Simple service to manage a TODO list
- docker
To build the docker image of the service, run the following command:
make build
docker exec -it scylla sh;
cqlsh;
CREATE KEYSPACE todos WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 1};
docker-compose up todo-service
The API should then be available at:
127.0.0.1:8080/api/v1/todos
The service exposes the following API resources:
Get a list of TODOs:
GET /api/v1/todos
Create a TODO:
POST /api/v1/todos
Get a single TODO:
GET /api/v1/todos/{id}
Remove a TODO:
DELETE /api/v1/todos/{id}