Correctly generate URL examples specifications
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
984037f7fc
commit
dcbf2967fd
2 changed files with 3 additions and 3 deletions
|
@ -1017,7 +1017,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