Skip to content

API Specification

이의찬 edited this page Jun 5, 2024 · 30 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;

  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;
}