Here at MatchesFashion we love API development. We would like for you to demonstrate your API & Java strength by completing this exercise.
- try to not spend more than 4 hours.
An incomplete java web application built with
- Gradle
- Spring Boot (mvc & data jpa)
- Java 8
- H2 DB Embedded
Classes
- Product - JPA Entity mapping to 'products' table
- ProductRepository - Spring JPA Repository class
Sample Data
- src/main/resources/data.sql
- loaded in automatically every time the application starts
- Develop an URL endpoint which returns all products
Hint! you can use the ProductRepository which has inherited useful methods ;) inject it into your class like so
@Autowired
private ProductRepository productRepository;
- Develop an endpoint which returns all products which cost more than 100
- JDK 8
./gradlew bootRun -i
- this will start a server on http://localhost:8080
- you can change the port under application.properties
- Link to your public git repo
- Or a link to your zipped up code