API Path Design - bounswe/bounswe2024group5 GitHub Wiki

  • POST auth/login
  • POST auth/register

  • POST /users
  • GET /users
  • GET /users/{userId}
  • PUT /users/{userId}
  • DELETE /users/{userId}

  • POST /users/{userId}/profile
  • GET /users/{userId}/profile
  • PUT /users/{userId}/profile
  • DELETE /users/{userId}/profile

  • POST /posts
  • GET /posts
  • GET /posts?UserId={UserId}
  • GET /posts/{postId}
  • PUT /posts/{postId}
  • DELETE /posts/{postId}

  • POST /comments
  • GET /comments
  • GET /comments?userId={UserId}
  • GET /comments?postId={postId}
  • GET /comments?userId={UserId}&postId={postId}
  • GET /comments/{commentId}
  • PUT /comments/{commentId}
  • DELETE /comments/{commentId}

a like object is in form ``

  • POST /likes
  • GET /likes
  • GET /likes?userId={UserId}
  • GET /likes?postId={postId}
  • GET /likes?commentId={commentId}
  • GET /likes/{likeId}
  • PUT /likes/{likeId}
  • DELETE /likes/{likeId}