Skip to content

API Specification

Suhwan Kim edited this page Nov 5, 2024 · 2 revisions

πŸ“Œ API Specifation Table

0️⃣ νƒ€μž… μ •μ˜

interface Image {
  id: number;
  imageUrl: string;
}

interface Feed {
  id: number;

  user: {
    id: number;
    profileImage: string;
    username: string;
  };

  content: string;
  images: Image[];

  likeCount: number;
  commentCount: number;

  isLiked: boolean;
  isBookmarked: boolean;
  isBlinded : boolean;

  createdAt: string;
  updatedAt: string;
}

interface Comment {
  id: number;

  user: {
    id: number;
    profileImage: string;
    username: string;
  };

  content: string;

  createdAt: string;
  updatedAt: string;
}

interface User {
  id: number;
  profileImage: string;
  name: string;
  username: string;
  content: string;
  locked: boolean; 

  feedCount: number;
  followingCount: number;
  followerCount: number;
}