Testing the service

The image service is now ready for testing. Compile it, download any image from the internet, and use curl to upload it to our service:

$ curl https://www.rust-lang.org/logos/rust-logo-128x128.png | curl -X POST --data-binary @- localhost:8080/upload

I4tcxkp9SnAjkbJwzy0m

This request downloads the Rust logo and uploads it to our microservice. It will return the name of the uploaded image with a response. Put it after the /download/ path and try to download it with your browser:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.141.27