From 92ae220d11039c3c80765b0d9aaaec0fe556996d Mon Sep 17 00:00:00 2001 From: alstn113 Date: Fri, 10 Jan 2025 20:47:09 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20query=20parameters,=20response=20fi?= =?UTF-8?q?elds=EC=97=90=20optional=20=ED=95=84=EB=93=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../restdocs/templates/query-parameters.snippet | 10 ++++++++++ .../restdocs/templates/response-fields.snippet | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 server/src/test/resources/org/springframework/restdocs/templates/query-parameters.snippet create mode 100644 server/src/test/resources/org/springframework/restdocs/templates/response-fields.snippet diff --git a/server/src/test/resources/org/springframework/restdocs/templates/query-parameters.snippet b/server/src/test/resources/org/springframework/restdocs/templates/query-parameters.snippet new file mode 100644 index 0000000..93eb477 --- /dev/null +++ b/server/src/test/resources/org/springframework/restdocs/templates/query-parameters.snippet @@ -0,0 +1,10 @@ +|=== +|Parameter|Optional|Description + +{{#parameters}} +|{{#tableCellContent}}`+{{name}}+`{{/tableCellContent}} +|{{#tableCellContent}}{{#optional}}true{{/optional}}{{/tableCellContent}} +|{{#tableCellContent}}{{description}}{{/tableCellContent}} + +{{/parameters}} +|=== \ No newline at end of file diff --git a/server/src/test/resources/org/springframework/restdocs/templates/response-fields.snippet b/server/src/test/resources/org/springframework/restdocs/templates/response-fields.snippet new file mode 100644 index 0000000..39e4cd2 --- /dev/null +++ b/server/src/test/resources/org/springframework/restdocs/templates/response-fields.snippet @@ -0,0 +1,11 @@ +|=== +|Path|Type|Optional|Description + +{{#fields}} +|{{#tableCellContent}}`+{{path}}+`{{/tableCellContent}} +|{{#tableCellContent}}`+{{type}}+`{{/tableCellContent}} +|{{#tableCellContent}}{{#optional}}true{{/optional}}{{/tableCellContent}} +|{{#tableCellContent}}{{description}}{{/tableCellContent}} + +{{/fields}} +|=== \ No newline at end of file