From 7d84066879f21dc6a8bece38bc3eb06d5013d3c1 Mon Sep 17 00:00:00 2001 From: YoungJun Park Date: Sun, 17 Oct 2021 13:26:48 +0900 Subject: [PATCH] =?UTF-8?q?[#2]=20API=20Http=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20(Bearer=20+=20JWT)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/teamnexters/lazy/api/http/MemberAPI.http | 4 ++-- .../java/com/teamnexters/lazy/api/http/http-client.env.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/com/teamnexters/lazy/api/http/MemberAPI.http b/api/src/main/java/com/teamnexters/lazy/api/http/MemberAPI.http index 325f237..c1d0948 100644 --- a/api/src/main/java/com/teamnexters/lazy/api/http/MemberAPI.http +++ b/api/src/main/java/com/teamnexters/lazy/api/http/MemberAPI.http @@ -5,8 +5,8 @@ Content-Type: application/json < addHabit.json ### 회원 정보 조회 -GET {{baseUrl}}/api/v1/member/{{mem-idx}} - +GET {{baseUrl}}/api/v1/member +Authorization: Bearer {{auth_token}} ### 습관 삭제 API DELETE {{baseUrl}}/api/v1/habit/{{mem-idx}}/{{habit-idx}} \ No newline at end of file diff --git a/api/src/main/java/com/teamnexters/lazy/api/http/http-client.env.json b/api/src/main/java/com/teamnexters/lazy/api/http/http-client.env.json index 18b84cf..1369f79 100644 --- a/api/src/main/java/com/teamnexters/lazy/api/http/http-client.env.json +++ b/api/src/main/java/com/teamnexters/lazy/api/http/http-client.env.json @@ -2,7 +2,8 @@ "local": { "baseUrl": "http://localhost:9093", "mem-idx": 1, - "habit-idx": 1 + "habit-idx": 1, + "auth_token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJqdW4xMDgwNTlAbmF2ZXIuY29tIiwicm9sZSI6IlVTRVIiLCJpYXQiOjE2MzQ1NDQ4MDUsImV4cCI6MTYzNDU0NjYwNX0.7aVLlYpBqa3jzO69-NCoaMdpKyrhzsutyDcVoj-F1Fs" }, "dev": {