Skip to content

Follow API Specification

BangDori edited this page Oct 13, 2024 · 1 revision
๊ธฐ๋Šฅ ๋ฉ”์„œ๋“œ URI ๋น„๊ณ 
ํŒ”๋กœ์šฐ ์š”์ฒญ POST /users/{user_id}/follow โŒ
์–ธํŒ”๋กœ์šฐ & ํŒ”๋กœ์šฐ ์š”์ฒญ ์ทจ์†Œ DELETE /users/{user_id}/follow โŒ
ํŒ”๋กœ์šฐ ํ™•์ธ GET /users/{user_id}/follow โŒ

1๏ธโƒฃ ํŒ”๋กœ์šฐ ์š”์ฒญ

interface Request {
  uri: '/users/{user_id}/follow';
  method: 'POST';
  body : {}
}

interface Response {
  code: '2000';
  data: {
    relationshipStatus: "self" | "following" | "none" | "pending";
  };
}

2๏ธโƒฃ ์–ธํŒ”๋กœ์šฐ & ํŒ”๋กœ์šฐ ์š”์ฒญ ์ทจ์†Œ

interface Request {
  uri: '/users/{user_id}/follow';
  method: 'DELETE';
  body : {}
}

interface Response {
  code: '2000';
  data: {
    relationshipStatus: "self" | "following" | "none" | "pending";
  };
}

3๏ธโƒฃ ํŒ”๋กœ์šฐ ํ™•์ธ

interface Request {
  uri: '/users/{user_id}/follow';
  method: 'GET';
  body : {}
}

interface Response {
  code: '2000';
  data: {
    relationshipStatus: "self" | "following" | "none" | "pending";
  };
}