To start application run docker compuse build ; docker compose up
(in the root folder of the project)
To use the application you can use postman
or curl
- curl command (when in project root folder)
curl --location --request POST 'http://localhost:8080/api/file' --form 'file=@"src/main/resources/input.txt"' >> output.txt
- Postman
Create a post call to localhost:8080/api/file
and add a body with form-data with a key named file
and as value the file itself.
Total time spent on this project approx 6 hours.