grpc-ecosystem/grpc-gateway

REST PUT request only passes fields to update

Open

#379 建立於 2017年5月5日

在 GitHub 查看
 (21 留言) (0 反應) (0 負責人)Go (16,971 star) (2,250 fork)batch import
documentationenhancementhelp wanted

描述

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?

貢獻者指南