Skip to content

danveloper/spring-boot-gridfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Exercising spring-boot-gridfs with curl


Storing files into GridFS.

Store the file Joker.png using curl's -F option to initiate a multi-part binary POST of the image file.

$ curl -F file=@Joker.png http://localhost:8080/files

List existing files stored in GridFS

$ curl http://localhost:8080/files

Response:

["Joker.png"]

Retrieve file from GridFS

Retrieve the file Joker.png from GridFS and store it on the local file system as file Joker.new.png.

$ curl -o Joker.new.png  http://localhost:8080/files/Joker.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published