/api-gateway

api gateway

Primary LanguageGoApache License 2.0Apache-2.0

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"