grpc-ecosystem/grpc-gateway

REST PUT request only passes fields to update

开放

#379 创建于 2017年5月5日

 (21 条评论) (0 个反应) (0 位负责人)Go (2,250 个派生)batch import
documentationenhancementhelp wanted

仓库指标

星标
 (16,971 个星标)
PR 合并指标
 (平均合并 8天 23小时) (30 天内合并 147 个 PR)

描述

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?

贡献者指南