How manuten77/pruebatecnica works
• Service Layer: The “Service” package (e.g., PriceService.java) encapsulates core business logic. Represent it as the “Service Layer.”
• Database: The presence of files such as “data.sql” in resources, and the generated database file (data.sql.mv.db), imply an underlying database (likely H2 or a similar embedded database during development). Include a “Database” component.
• Configuration & External Dependencies: Don’t forget the configuration files (application.properties, logback config, Maven wrapper, and pom.xml) that set up running environments. You might include a smaller section or note for “Configurations/Build Tools” to remind stakeholders these are essential to the setup.
Relationships and Data Flow
• That the Repository layer communicates with the underlying Database.
• Optionally, include a connection from the Swagger component (under Context/SwaggerConfig) to the API layer to indicate that it helps document and test the endpoints.
Architectural Patterns
• Layered Architecture: Demonstrate clear separation of concerns between the presentation (Controllers/API), business logic (Services), and data access (Repositories/Persistence).
• REST API: Mark that the system has RESTful endpoints which may follow standard CRUD operations.
• Dependency Injection & Inversion of Control inherent in Spring Boot should be noted, as this makes the component interactions loosely coupled and easy to test.
• Testing: Acknowledge the unit and integration tests present in the src/test directory, which support robust software design.
Relevant Technologies and Frameworks
• Spring Boot: As the core framework, provide a label or note.
• Maven: For build automation and dependency management.
• Swagger: For API documentation (as indicated by SwaggerConfig.java).
• H2/Embedded Database: Indicated by the “data.sql.mv.db” and data.sql file (if using an embedded database).