- POST /upload - Uploading a file to a static folder
- GET /files - Get the list of uploaded file names
- Java 17
- Spring Boot 3.1.0
- Maven
- File upload curl request
curl --location 'http://localhost:8080/upload' \
--form 'file=@"/Users/Downloads/rsz_test_2995440.png"'
Sample response
File uploaded successfully: rsz_test_2995440.png
- Get uploaded file names curl request
curl --location 'http://localhost:8080/files'
Sample response
[
"2023-07-25.pdf",
"Invoice 222162 from ABC Ltd.pdf"
]