A simple webapp created with Lagom and Maven. Designed with the following:
Objective:
Design and implement a simple application serving a RESTful API to perform operations on Organization as well as Users. Please implement the challenge in any of the Java Web Frameworks. We are looking to see how you design and implement your model as well as your application. We expect to be able to trace an endpoint down to the data transfer objects (DTO) that represent Organizations and Users. Feel free to provide additional documentation (UML, SQL scripts, comments, etc) that may communicate your design choices. We expect your API to support the following operations:
- Create a single
Organization
- Create a single
User
- Add a
User
to anOrganization
- Delete a
User
from anOrganization
- Read all
User
s who belong to a specificOrganization
- Read all
Organization
s to which aUser
belongs
- Java 8 (Lagom v1.5.x is not compatible)
- Maven 3.5.1
- Clone repository
- Run
mvn -Dlogger.file=./demo-utils/src/main/resources/debug.xml lagom:runAll -f pom.xml
- In a separate cmd session, open
./scripts/
- Run any one of the scripts for demonstration, log output will emit debugging information from the services and repositories.
Generated OpenAPI docs can be seen