Skip to content

Latest commit

 

History

History
20 lines (20 loc) · 632 Bytes

README.md

File metadata and controls

20 lines (20 loc) · 632 Bytes

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