Skip to content

Commit

Permalink
Merge pull request #3 from agnosticeng/chore/allow-query-params-for-d…
Browse files Browse the repository at this point in the history
…elete

chore: allowing query params for delete method
  • Loading branch information
didierfranc authored Jul 13, 2023
2 parents fd29703 + 4f26b02 commit 673abca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ func renderURL(r *registry.Registry) func(method data.Method) string {
}
urlPathParams := fmt.Sprintf("[%s]", strings.Join(fieldsInPath, ", "))

if !method.ClientStreaming && method.HTTPMethod == "GET" {
if !method.ClientStreaming && (method.HTTPMethod == "GET" || method.HTTPMethod == "DELETE") {
// parse the url to check for query string
parsedURL, err := url.Parse(methodURL)
if err != nil {
Expand Down

0 comments on commit 673abca

Please sign in to comment.