grpc-ecosystem/grpc-gateway

REST PUT request only passes fields to update

Open

#379 opened on May 5, 2017

View on GitHub
 (21 comments) (0 reactions) (0 assignees)Go (16,971 stars) (2,250 forks)batch import
documentationenhancementhelp wanted

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?

Contributor guide