Skip to content

Instantly share code, notes, and snippets.

@cheese10yun
Last active September 11, 2021 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheese10yun/c30acbb71cb52533ae7b967b5e15526c to your computer and use it in GitHub Desktop.
Save cheese10yun/c30acbb71cb52533ae7b967b5e15526c to your computer and use it in GitHub Desktop.
# /src/test/resources/org/springframework/restdocs/templates
# request-fields.snippet
|===
|Field|Type|Required|Description|Length
{{#fields}}
|{{#tableCellContent}}`+{{path}}+`{{/tableCellContent}}
|{{#tableCellContent}}`+{{type}}+`{{/tableCellContent}}
|{{#tableCellContent}}{{^optional}}true{{/optional}}{{#optional}}false{{/optional}}{{/tableCellContent}}
|{{#tableCellContent}}{{description}}{{/tableCellContent}}
|{{#tableCellContent}}{{#length}}{{.}}{{/length}}{{/tableCellContent}}
{{/fields}}
|===
# request-parameters.snippet
|===
|Parameter|Required|Description
{{#parameters}}
|{{#tableCellContent}}`+{{name}}+`{{/tableCellContent}}
|{{#tableCellContent}}{{^optional}}true{{/optional}}{{#optional}}false{{/optional}}{{/tableCellContent}}
|{{#tableCellContent}}{{description}}{{/tableCellContent}}
{{/parameters}}
|===
# response-fields.snippet
|===
|Path|Type|Required|Description
{{#fields}}
|{{#tableCellContent}}`+{{path}}+`{{/tableCellContent}}
|{{#tableCellContent}}`+{{type}}+`{{/tableCellContent}}
|{{#tableCellContent}}{{^optional}}true{{/optional}}{{#optional}}false{{/optional}}{{/tableCellContent}}
|{{#tableCellContent}}{{description}}{{/tableCellContent}}
{{/fields}}
|===
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment