Skip to content

API Path Design

Semih Yılmaz edited this page Apr 17, 2024 · 1 revision
  • 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}

🏠 Home

🗃️ All Project Files

💻 Lab Reports

📝 Meeting Notes

Lab Meeting Notes
Team Meeting Notes
🧑🏻‍💻 About Us
🗂️ Templates
CmpE 352

🚀 Important Project Files

🗃️ All Project Files
📝 352 Meeting Notes
📜 Research & Resources
Clone this wiki locally