master | develop |
---|---|
Small project for testing out Spring Boot JPA layer. It is a webservice which exposes few RESTful resources for getting information inventory status on vegetables.
Its dependencies and build functions are configured using Maven.
The tests can be run via maven:
mvn test
Maven package creates an executable jar file
mvn package
The service is built with Spring Boot and can be run with the Spring Boot Maven plugin:
mvn spring-boot:run
Notice that the database is pre-initialized with three items. Currently only in-memory database is used and no cache has been configured.
GET http://localhost:8080/api/v1/vegetables
GET http://localhost:8080/api/v1/vegetables/1