From 9ad7eb10600b2be7a72ebad182742fdd07dba9b2 Mon Sep 17 00:00:00 2001 From: IdionKim Date: Mon, 13 Jul 2020 21:13:44 +0900 Subject: [PATCH] =?UTF-8?q?BE-#112=20docs:=20REST=20Docs=20=EC=BB=A4?= =?UTF-8?q?=EC=8A=A4=ED=85=80=20Snippet=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../restdocs/templates/path-parameters.snippet | 11 +++++++++++ .../restdocs/templates/request-fields.snippet | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 BE/src/test/resources/org/springframework/restdocs/templates/path-parameters.snippet create mode 100644 BE/src/test/resources/org/springframework/restdocs/templates/request-fields.snippet diff --git a/BE/src/test/resources/org/springframework/restdocs/templates/path-parameters.snippet b/BE/src/test/resources/org/springframework/restdocs/templates/path-parameters.snippet new file mode 100644 index 0000000..ff899e4 --- /dev/null +++ b/BE/src/test/resources/org/springframework/restdocs/templates/path-parameters.snippet @@ -0,0 +1,11 @@ +|=== + |Parameter|Description|필수값 + +{{#parameters}} + |{{#tableCellContent}}`+{{name}}+`{{/tableCellContent}} + |{{#tableCellContent}}{{description}}{{/tableCellContent}} + |{{#tableCellContent}}{{^optional}}true{{/optional}}{{/tableCellContent}} + +{{/parameters}} + + |=== diff --git a/BE/src/test/resources/org/springframework/restdocs/templates/request-fields.snippet b/BE/src/test/resources/org/springframework/restdocs/templates/request-fields.snippet new file mode 100644 index 0000000..5eadd4b --- /dev/null +++ b/BE/src/test/resources/org/springframework/restdocs/templates/request-fields.snippet @@ -0,0 +1,12 @@ +|=== + |Path|Type|필수값|Description + +{{#fields}} + |{{#tableCellContent}}`+{{path}}+`{{/tableCellContent}} + |{{#tableCellContent}}`+{{type}}+`{{/tableCellContent}} + |{{#tableCellContent}}{{^optional}}true{{/optional}}{{/tableCellContent}} + |{{#tableCellContent}}{{description}}{{/tableCellContent}} + +{{/fields}} + + |===