API Routes - CSCI-40500-77100-Spring-2021/project-10__backend GitHub Wiki

Models

Post

  String postId;
  String title;
  String description;
  String postImageURL; //Undecided Image type

Create Post

/me/post/create(Post)

Input

{ //attributes stored
  String title;
  String description;
  Image image; //Undecided Image type
}

Output

{ //attributes returned
  Post post;
}

/user/:id/post(Get)

{ //attributes retrieved
  Post[] postArray;
}

Delete Post

/me/post/:postid (Delete)