- No database is needed - a query is sent from another service/microservice and the payslips will be returned to them as JSON
- Data validation not required - another microservice will already have an existing database and knowledge of the format to query this microservice with.
- The application is currently hosted on AWS' Fargate through an ECR docker image at http://awscd-myfar-1e3hl0voh2gst-1630703603.ap-southeast-2.elb.amazonaws.com/generate
- The application requires a body to return anything, this can be done through an API tool such as Postman - https://www.postman.com/
- Use a get request and hitting the above mentioned endpoint with a body formatted like below in the raw format
4 . The API should send a response body such as the one below
Note: requires docker (hosted at https://hub.docker.com/repository/docker/adamcoppens/coding-test-app)
- docker pull adamcoppens/coding-test-app
- docker run -p 8080:8080 adamcoppens/coding-test-app
- send json bodies as shown in other examples to http://localhost:8080/generate
- Run Program from CodingTestApplication.java Start Point (Backend currently runs on localhost:8080)
- Using an API testing tool such as Postman send JSON objects as a GET request formatted like below through the body to the endpoint: http://localhost:8080/generate