API Upload file is a service that provide you upload files and download thoses files
API Upload Files is the most easy way to upload file to a server.
You will need the following tools properly installed on your computer.
go test storagedata/storagedata_test.gogo test storagedata/storagedata_test.gogo run cmd/apiamericanas/main.goPOST /sendfile
curl \
-v -F path="ht/monthly" \
-F file=@"/home/mateus-mello/go/src/americanas/test_files/mars.png" \
http://localhost:8081/sendfile
GET /allfiles
curl -X GET 'http://localhost:8081/allfiles'POST /delete?data=FileID
curl -X POST 'http://localhost:8081/delete?data=fa0ecd5f42635c34e2f879a24039988e'GET /byid?data=FileID
curl -X GET 'http://localhost:8081/byid?data=0cb90ac871279cc942de976882b71a00'POST /movefile?data=FileID
curl -X POST 'http://localhost:8081/movefile?data=0cb90ac871279cc942de976882b71a00' \
-d '{"directory": "solarsystem/planets"}'POST /overwrite?data=FileID
curl \
-F file=@"/home/mateus-mello/go/src/americanas/test_files/perseverance.png" \
http://localhost:8081/overwrite?data=0cb90ac871279cc942de976882b71a00
GET /storagedata/dirOfFile
curl -X GET 'http://localhost:8081/storagedata/solarsystem/planets/perseverance.png'