A simple microservice to accept multiple files as input and return zip file. The api avoids doing any Write intensive operation and process the input files directly into response zip file after some basic validations. This allow better performance as CPU is not waitng to get hold of disk access.
-
Using docker: Run
docker-compose up
in project root directory. It makes use of openjdk-8 running on top of light-weight alpine image. -
Using gradle: Run
./gradlew bootRun
The application start up at 8080 by default. To change port application.properties or docker-compose.yml for gradle and docker execution respectively.
Application has set of Unit tests case and Integration tests that are executed before every bootRun command. For testing via a rest client like Postman,
- Import the postman collection
- Pass files in field
files
with key type asFile