meateam / api-gateway

api gateway
Apache License 2.0
10 stars 4 forks source link
api-gateway golang grpc-client grpc-go

api-gateway

Go Report Card GoDoc

Perform a simple media upload

curl -X POST http://localhost:8080/api/upload?uploadType=media --data-binary "@/path/to/file" -H "Authorization: Bearer <jwt_token>" -H "Content-Type: <file_mime_type>" -H "Content-Disposition: filename=<file_name>"

Perform a simple multipart upload

curl -X POST http://localhost:8080/api/upload?uploadType=multipart -H "Authorization: Bearer <jwt_token>" -H "Content-Type: multipart/form-data" -F "file=@/path/to/file"