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 24, 2018
1 parent e8bd377 commit 128f7ef
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 128f7ef

Please sign in to comment.