github.com/wheelercj/pm2md@v0.0.11/cmd/minimal.tmpl (about) 1 # {{ .info.name }} 2 {{- range .item }} 3 4 ---------------------------------------- 5 6 ## {{ .name }} 7 8 {{ .request.method }} `/{{ join .request.url.path "/" }}` 9 {{- if .request.body.raw }} 10 11 ### sample request body 12 13 ```{{ .request.body.options.raw.language }} 14 {{ allowJsonOrPlaintext .request.body.raw }} 15 ``` 16 {{- end }} 17 {{- range .response }} 18 19 ### sample response to {{ .name }} (status: {{ .code }} {{ .status }}) 20 21 ```{{ ._postman_previewlanguage }} 22 {{- if .body }} 23 {{ allowJsonOrPlaintext .body }} 24 {{- else }} 25 (no response body) 26 {{- end }} 27 ``` 28 {{- end }} 29 {{- end }} 30