utrack / clay

Proto-first minimal server platform for gRPС+REST+Swagger APIs
MIT License
289 stars 39 forks source link

How to setting allow_delete_body option is true? #89

Closed zengzhengrong closed 4 years ago

zengzhengrong commented 4 years ago

I want to allow delete request have a request body , but I don't konw how to setting , I use yaml to config my http define ,

--goclay_out: must not set request body when http method is DELETE except allow_delete_body option is true: DeleteUser
http:
  rules:
  -  selector: user_center.ManageUserCenter.DeleteUser
      delete: '/v1/example/userCenter/deleteUser'
      body: 'data'
      allow_delete_body: true

it does not work