HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧚
[1기]최종 프로젝트 데브코스
/
🏀
[팀14] 슬램 - 우리 주변 농구장 예약
/
🧭
Domain 설계 1
/
[POST] /api/v1/follow

[POST] /api/v1/follow

Request

  • 헤더
headers { Authorization: "Bearer ${token}" } // 토큰으로 부터 userId를 추출함
  • 바디
{ "followUserId": 2 }
Body
Filed
Type
Description
비고
followUserId
Number
팔로우 할 유저 ID
팔로우 할 유저 ID

RESPONSE

  • JSON (예시)
  • (사실 프론트에는 쓸모 없지만 테이블에 생성된 데이터 보내주는 용도)
{ "followId": 3, "userId": 내 아이디, "followingId": 5 // 유저의 아이디 }
 
Body
Path
Type
Description
비고
success
Boolean
성공여부
true/false
followId
Number
팔로우 구별키
알면 바로 끊기 위해서
serverDateTime
String
api 응답시간