Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ“ƒDocs/#22: AuthControllerHttpRequest μ˜€νƒ€ μˆ˜μ • #23

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions http/auth/AuthControllerHttpRequest.http
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 1.1 μ‚¬μš©μž 둜그인 (Kakao Oauth)
// @no-log
POST {{host_url}}/v1/oauth/login
POST {{host_url}}/api/v1/oauth/login
Content-Type: application/json

{
Expand All @@ -15,8 +15,8 @@ Content-Type: application/json

### 1.2 λ””λ°”μ΄μŠ€ 토큰 κ°±μ‹ 
// @no-log
PATCH {{host_url}}/v1/auth/device-token
Authorization : Bearer {{access_token}}
PATCH {{host_url}}/api/v1/auth/device-token
Authorization: Bearer {{access_token}}
Content-Type: application/json

{
Expand All @@ -25,17 +25,17 @@ Content-Type: application/json

### 1.3 JWT μž¬λ°œκΈ‰
// @no-log
POST {{host_url}}/v1/auth/reissue/token
Authorization : Bearer {{refresh_token}}
POST {{host_url}}/api/v1/auth/reissue/token
Authorization: Bearer {{refresh_token}}

### 1.4 μ‚¬μš©μž λ‘œκ·Έμ•„μ›ƒ
// @no-log
POST {{host_url}}/v1/auth/logout
Authorization : Bearer {{access_token}}
Authorization: Bearer {{access_token}}

### 2.1 κ°€κ²Œ 일반 νšŒμ›κ°€μž… (데이터 μ‚½μž…μš©)
// @no-log
POST {{host_url}}/v1/auth/sign-up
POST {{host_url}}/api/v1/auth/sign-up
Content-Type: multipart/form-data; boundary=boundary

--boundary
Expand All @@ -59,26 +59,26 @@ Content-Type: application/json
"password" : "{{auth.API_2_1.password}}",
"store_info" :
{
"onjung_tag" : "{{auth.API_2_1.onjung_tag}}",
"title" : "{{auth.API_2_1.title}}",
"youtube_url" : "{{auth.API_2_1.youtube_url}}",
"name" : "{{auth.API_2_1.name}}",
"category" : "{{auth.API_2_1.category}}",
"introduction" : "{{auth.API_2_1.introduction}}"
"onjung_tag" : ["{{auth.API_2_1.store_info.onjung_tag[0]}}", "{{auth.API_2_1.store_info.onjung_tag[1]}}"],
"title" : "{{auth.API_2_1.store_info.title}}",
"youtube_url" : "{{auth.API_2_1.store_info.youtube_url}}",
"name" : "{{auth.API_2_1.store_info.name}}",
"category" : "{{auth.API_2_1.store_info.category}}",
"introduction" : "{{auth.API_2_1.store_info.introduction}}"
},
"ocr_info" :
{
"store_name" : "{{auth.API_2_1.store_name}}",
"address_name" : "{{auth.API_2_1.address_name}}"
"store_name" : "{{auth.API_2_1.ocr_info.store_name}}",
"address_name" : "{{auth.API_2_1.ocr_info.address_name}}"
},
"bank_info" :
{
"name": "{{auth.API_2_1.bank_name}}",
"account_number" : "{{auth.API_2_1.account_number}}"
"name": "{{auth.API_2_1.bank_info.name}}",
"account_number" : "{{auth.API_2_1.bank_info.account_number}}"
}
}

### 2.2 νƒˆν‡΄ν•˜κΈ°
// @no-log
DELETE {{host_url}}/v1/auth
Authorization : Bearer {{access_token}}
DELETE {{host_url}}/api/v1/auth
Authorization: Bearer {{access_token}}
Loading