From 2dc06890fac7882496c804d1c2e8d4a63d7cdbc2 Mon Sep 17 00:00:00 2001 From: HyuckJuneHong Date: Mon, 27 Nov 2023 02:25:18 +0900 Subject: [PATCH] =?UTF-8?q?test:=20RestDoc=20=EC=97=85=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/docs/coupon.html | 64 +++++++++++++++------- 1 file changed, 43 insertions(+), 21 deletions(-) diff --git a/src/main/resources/static/docs/coupon.html b/src/main/resources/static/docs/coupon.html index 4b9cc040..4feedc62 100644 --- a/src/main/resources/static/docs/coupon.html +++ b/src/main/resources/static/docs/coupon.html @@ -498,7 +498,7 @@

쿠폰 삭제

요청

-
DELETE /admins/coupons/33 HTTP/1.1
+
DELETE /admins/coupons/35 HTTP/1.1
 Host: localhost:8080
@@ -526,7 +526,7 @@

특정 쿠폰 조회

요청

-
GET /coupons/22 HTTP/1.1
+
GET /coupons/23 HTTP/1.1
 Host: localhost:8080
@@ -540,16 +540,16 @@

응답

Access-Control-Allow-Credentials: true Access-Control-Max-Age: 3600 Content-Type: application/json -Content-Length: 205 +Content-Length: 198 { - "id" : 22, + "id" : 23, "adminName" : "1admin", "name" : "couponName", "description" : "", "point" : 10, "stock" : 100, - "type" : "MORNING_COUPON", + "type" : "MORNING", "startAt" : "2023-02-01", "openAt" : "2023-01-01" }
@@ -590,16 +590,16 @@

응답

Access-Control-Allow-Credentials: true Access-Control-Max-Age: 3600 Content-Type: application/json -Content-Length: 206 +Content-Length: 199 [ { - "id" : 23, + "id" : 24, "adminName" : "1admin", "name" : "coupon1", "description" : "", "point" : 10, "stock" : 100, - "type" : "MORNING_COUPON", + "type" : "MORNING", "startAt" : "2023-03-01", "openAt" : "2023-01-01" } ]
@@ -672,38 +672,38 @@

응답

Access-Control-Allow-Credentials: true Access-Control-Max-Age: 3600 Content-Type: application/json -Content-Length: 507 +Content-Length: 472 [ { - "id" : 17, + "id" : 18, "name" : "c1", "description" : "", "point" : 10, - "type" : "MORNING_COUPON" + "type" : "MORNING" }, { - "id" : 18, + "id" : 19, "name" : "c2", "description" : "", "point" : 10, - "type" : "MORNING_COUPON" + "type" : "MORNING" }, { - "id" : 19, + "id" : 20, "name" : "c3", "description" : "", "point" : 10, - "type" : "MORNING_COUPON" + "type" : "MORNING" }, { - "id" : 20, + "id" : 21, "name" : "c4", "description" : "", "point" : 10, - "type" : "MORNING_COUPON" + "type" : "MORNING" }, { - "id" : 21, + "id" : 22, "name" : "c5", "description" : "", "point" : 10, - "type" : "MORNING_COUPON" + "type" : "MORNING" } ] @@ -711,12 +711,34 @@

응답

-

쿠폰 사용 (진행 중)

+

쿠폰을 사용

사용자가 자신의 보관함에 있는 쿠폰들을 사용합니다.
+
+

요청

+
+
+
POST /my-coupons/34 HTTP/1.1
+Host: localhost:8080
+Content-Type: application/x-www-form-urlencoded
+
+
+

응답

+
+
+
HTTP/1.1 200 OK
+Access-Control-Allow-Origin:
+Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, PATCH
+Access-Control-Allow-Headers: Origin, Accept, Access-Control-Request-Method, Access-Control-Request-Headers, X-Requested-With,Content-Type, Referer
+Access-Control-Allow-Credentials: true
+Access-Control-Max-Age: 3600
+
+
+
+
@@ -724,7 +746,7 @@

쿠폰 사용 (진행 중)