Skip to content

Sudarshan-Gowda/spring-boot-fileupload-restapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-fileupload-restapi

File Upload Rest API Server and client example

Prerequisites

The following items should be installed in your system:

  • Tool - Spring Tool Suite

Steps to Clone The Repository Application:

  1. Download this Project from Git.
git clone https://github.com/Sudarshan-Gowda/spring-boot-fileupload-restapi.git
  1. To Import the Project Using Eclipse or STS
File -> Import -> Maven -> Existing Maven project -> spring-boot-fileupload-restapi

Looking for something in particular?

File Upload Example Class or Java property files
Application Configuration File application.properties

Steps to test the application:

To Run the Spring MVC Application:

step 1: Download this repository & do maven import

step 2: Go to the main class file and run as Java application or execute commands mvn spring-boot:run

step 3: Once the application starts, By default application will be deployed in 8080 port, and you can access it by using http://localhost:8080/

To Test the exposed Rest API's

To Test the application you can use any rest api tool or postman as below,

Multiple File Upload


Single File Upload


Download File Upload


Source code preview


Rest Client - To consume the exposed API's

Lets suppose you are the consumer and you need to consume the API's provided by vendors means you can achieve with many ways, in that Rest template is also one of the finest way to do that as below;

File upload along with String/Json as well



Source Code for File upload along with String/Json


Source Code for File upload along with String/Json

Consumer client:

Contributing

The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.

About

File Upload Rest API Server and client example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages