Skip to content

Commit

Permalink
Support delete method in swagger generator
Browse files Browse the repository at this point in the history
  • Loading branch information
blackdahila committed Apr 25, 2018
1 parent 739cd2d commit dfac412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-swagger/genswagger/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ func renderServices(services []*descriptor.Service, paths swaggerPathsObject, re
Required: true,
Schema: &schema,
})
} else if b.HTTPMethod == "GET" {
} else if b.HTTPMethod == "GET" || b.HTTPMethod == "DELETE" {
// add the parameters to the query string
queryParams, err := messageToQueryParameters(meth.RequestType, reg, b.PathParams)
if err != nil {
Expand Down

0 comments on commit dfac412

Please sign in to comment.