Locator API - Architecture
Architecture Overview
LocatorAPI app is build on Spring Framework and follows layered architecture.Here each layer communicates with the layer directly below or above (hierarchical structure it)
There are four different layers in the application as shown in the diagram below.
Presentation Layer: This layer handles the HTTP requests, translate the JSON parameter to object, authenticate the request and transfer it to business layer. In shorts, it consist of views and api endpoints.
Business Layer: This layer handles all the business logic, It consist of service classes and uses services provided by data access layer. This layer also perform authorization and validation
Persistence Layer: This layer contains all the storage logic and translates objects from and to database rows
Database Layer: In this layer CRUD(create, read, update, delete) operations are performed.