Create Spring Boot Application to upload multipart files and get files’ information with static folder download via Restful API.
Spring Boot Rest APIs for uploading Files to Database
Our Spring Boot Application will provide APIs for:
uploading File to PostgreSQL/MySQL database
downloading File database with the link
getting list of Files’ information (file name, url, type, size)
These are APIs to be exported:
Methods Urls Actions
POST /upload upload a File
GET /files get List of Files (name, url, type, size)
GET /files/[fileId] download a File
1.POST Method
http://localhost:8087/api/excel/upload
get some message
- GET MEthod Lsit All
http://localhost:8087/api/excel/listAll
Retrieve list of Files’ information:
- Get Method Download Excel file
http://localhost:8087/api/excel/download
This way to Download file of get method in excel foemat all data.