HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧚
[1기]최종 프로젝트 데브코스
/
[팀12] 기부니🧡
[팀12] 기부니🧡
/
🧡
API 설계
/
📢
요청/응답 값
📢

요청/응답 값

HTTP verbs
POST
Path
/users/login
기능
로그인
담당자
부희
도메인
회원
센터
완료
완료

POST /user/login


 
 

요청 값


{ "email": "string", "password": "string" } ex) { "email": "member@email.com", "password": "need1234" }
 

응답 값(200)


{ "message": "success", "data": { "grantType": "Bearer", "accessToken": "{발급된 토큰}" } }
 

스웨거에서 헤더에 토큰 설정 방법


notion image
notion image
 

Curl ⇒ 프론트 쪽에서 헤더에 등록할 때 아래와 같이


curl -X GET "http://localhost:8080/donations/1" -H "accept: */*" -H "Authorization: Bearer 발급된 토큰" (Bearer 다음 한 칸 뛰어야함)