Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different request /response for Dapr storage binding across GCP,Azure and AWS #3572

Open
bhagya05 opened this issue Oct 18, 2024 · 0 comments

Comments

@bhagya05
Copy link
Contributor

We have noticed inconsistencies in the request and response structures of the Dapr bindings for GCP Bucket, Azure Blob Storage, and AWS S3.
These differences hinder the uniform use of Dapr as a plugin component, as we are required to create and manage distinct request/response objects for each binding.

Example

GCP bucket upload request looks like this

curl -d "{ \"operation\": \"create\", \"data\": \"(YOUR_FILE_CONTENTS)\", 
\"metadata\": { \"key\": \"my-test-file.jpg\" } }" http://localhost:<dapr-port>/v1.0/bindings/<binding-name>

While for Azure looks like this

curl -d "{ \"operation\": \"create\", \"data\": \"Hello World\", 
\"metadata\": { \"blobName\": \"my-test-file.txt\" } }"  http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant