Skip to content

Follow API Specification

์ด์˜์ฐฌ edited this page Jun 26, 2024 · 2 revisions
๊ธฐ๋Šฅ ๋ฉ”์„œ๋“œ 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";
  };
}