grpc-ecosystem/grpc-gateway
View on GitHubREST PUT request only passes fields to update
Open
#379 opened on May 5, 2017
documentationenhancementhelp wanted
Repository metrics
- Stars
- (16,971 stars)
- PR merge metrics
- (Avg merge 8d 23h) (147 merged PRs in 30d)
Description
I'm trying to export REST APIs and the problem is that in my PUT request, client usually tries to pass only fields to update, but the generated proto will set all the other fields to its default value. I have no way to tell which fields to update.
Of course I can restrict client to always pass the full object, but is there better way to do this?