Merge pull request #752 from stevvooe/add-missing-ampersands
Correctly generate URL examples specifications
This commit is contained in:
commit
549a3921a4
2 changed files with 3 additions and 3 deletions
|
@ -1041,7 +1041,7 @@ The error codes encountered via the API are enumerated in the following table:
|
|||
##### {{.Name}}{{end}}
|
||||
|
||||
```
|
||||
{{$method.Method}} {{$route.Path|prettygorilla}}{{if .QueryParameters}}?{{range .QueryParameters}}{{.Name}}={{.Format}}{{end}}{{end}}{{range .Headers}}
|
||||
{{$method.Method}} {{$route.Path|prettygorilla}}{{range $i, $param := .QueryParameters}}{{if eq $i 0}}?{{else}}&{{end}}{{$param.Name}}={{$param.Format}}{{end}}{{range .Headers}}
|
||||
{{.Name}}: {{.Format}}{{end}}{{if .Body.ContentType}}
|
||||
Content-Type: {{.Body.ContentType}}{{end}}{{if .Body.Format}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue