Skip to content

gabizou/lagom-gdpr-microservice-demo

Repository files navigation

CameraIQ RESTful API Demo

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 an Organization
  • Delete a User from an Organization
  • Read all Users who belong to a specific Organization
  • Read all Organizations to which a User belongs

Requirements to Run

  • Java 8 (Lagom v1.5.x is not compatible)
  • Maven 3.5.1
  1. Clone repository
  2. Run mvn -Dlogger.file=./demo-utils/src/main/resources/debug.xml lagom:runAll -f pom.xml
  3. In a separate cmd session, open ./scripts/
  4. 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