From 9bd3093c1615adf4b4b9e55b15b95d7978ee1de0 Mon Sep 17 00:00:00 2001 From: silver Date: Wed, 12 Apr 2023 06:53:47 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20adoc=20=EC=8A=A4=EB=8B=88=ED=8E=AB=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1=20#98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../restdocs/templates/request-fields.snippet | 11 +++++++++++ .../restdocs/templates/request-parameters.snippet | 9 +++++++++ .../restdocs/templates/response-fields.snippet | 10 ++++++++++ 3 files changed, 30 insertions(+) create mode 100644 wingle/src/test/resources/org/springframework/restdocs/templates/request-fields.snippet create mode 100644 wingle/src/test/resources/org/springframework/restdocs/templates/request-parameters.snippet create mode 100644 wingle/src/test/resources/org/springframework/restdocs/templates/response-fields.snippet diff --git a/wingle/src/test/resources/org/springframework/restdocs/templates/request-fields.snippet b/wingle/src/test/resources/org/springframework/restdocs/templates/request-fields.snippet new file mode 100644 index 00000000..8e7b90bb --- /dev/null +++ b/wingle/src/test/resources/org/springframework/restdocs/templates/request-fields.snippet @@ -0,0 +1,11 @@ +//@formatter:off +|=== +|필드명|타입|필수여부|제약조건|설명 +{{#fields}} +|{{#tableCellContent}}`+{{path}}+`{{/tableCellContent}} +|{{#tableCellContent}}`+{{type}}+`{{/tableCellContent}} +|{{#tableCellContent}}{{^optional}}true{{/optional}}{{#optional}}false{{/optional}}{{/tableCellContent}} +|{{#tableCellContent}}{{#constraints}}{{.}}{{/constraints}}{{/tableCellContent}} +|{{#tableCellContent}}{{description}}{{/tableCellContent}} +{{/fields}} +|=== \ No newline at end of file diff --git a/wingle/src/test/resources/org/springframework/restdocs/templates/request-parameters.snippet b/wingle/src/test/resources/org/springframework/restdocs/templates/request-parameters.snippet new file mode 100644 index 00000000..623aef91 --- /dev/null +++ b/wingle/src/test/resources/org/springframework/restdocs/templates/request-parameters.snippet @@ -0,0 +1,9 @@ +//@formatter:off +|=== +|파라미터|필수여부|설명 +{{#parameters}} +|{{#tableCellContent}}`+{{name}}+`{{/tableCellContent}} +|{{#tableCellContent}}{{^optional}}true{{/optional}}{{#optional}}false{{/optional}}{{/tableCellContent}} +|{{#tableCellContent}}{{description}}{{/tableCellContent}} +{{/parameters}} +|=== \ No newline at end of file diff --git a/wingle/src/test/resources/org/springframework/restdocs/templates/response-fields.snippet b/wingle/src/test/resources/org/springframework/restdocs/templates/response-fields.snippet new file mode 100644 index 00000000..119e9c44 --- /dev/null +++ b/wingle/src/test/resources/org/springframework/restdocs/templates/response-fields.snippet @@ -0,0 +1,10 @@ +//@formatter:off +|=== +|필드명|타입|필수여부|설명 +{{#fields}} +|{{#tableCellContent}}`+{{path}}+`{{/tableCellContent}} +|{{#tableCellContent}}`+{{type}}+`{{/tableCellContent}} +|{{#tableCellContent}}{{^optional}}true{{/optional}}{{#optional}}false{{/optional}}{{/tableCellContent}} +|{{#tableCellContent}}{{description}}{{/tableCellContent}} +{{/fields}} +|=== \ No newline at end of file