A simple Spring-Boot rest application with mybatis using annotation.
To run:
mvn clean install
mvn spring-boot:run
Endpoints
- http://localhost:9090/task/{id} (GET) get by id
- http://localhost:9090/task (GET) get all
- http://localhost:9090/task (POST) insert. json= {"name":"name", "startDate":"15/05/2017"}
- http://localhost:9090/task (PUT) update. json= {"id":"1", "name":"name updated", "startDate":"16/05/2017", "version":"0"}
- http://localhost:9090/task/{id} (DELETE) delete by id
- update database properties in application.properties (main and test)
- implement internacionalization
- implement default rollback in tests integration with cucumber