This is a spring boot application that displays the products.
It is designed with MVC architecture.
GET /
provides the list of products from the serverGET /{id}
provides the detail description of the product
Uses Spring Boot Starter Data
package to query/connect to the database. H2 is the memory based storage that we use on this.
ApiLogger
uses Aspect Oriented Programming
to envelope the request/response before sending it back to the client.
The ApiLogger is designed to only intercept RestController
class.
For each call made to the database ProductRepository
call from the app, it is recorded as a metrics.
You can download it and run via maven or if not, run through the IDE.