Advertisement
Georgi_Benchev

Untitled

Jan 26th, 2025
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. Possible Endpoints:
  2.  
  3.  
  4. /posts: Create and view posts.
  5. /posts/{postId}: View, edit, or delete a specific post.
  6.  
  7.  
  8. /auth/login: Login a user and return a token.
  9. /auth/logout: Log out the user.
  10. /auth/refresh: Refresh authentication token.
  11.  
  12.  
  13. /admin/users: Search for users and manage their status (block, unblock).
  14. /admin/users/{userId}/make-admin: Make a user an admin.
  15. /admin/posts: List and delete any post.
  16.  
  17.  
  18. /users/profile: Get and update the user’s profile.
  19. /users/posts: Create, edit, view, and delete user's posts.
  20. /users/posts/{postId}/comments: Add comments to posts.
  21. /users/posts/{postId}/like: Like or dislike a post.
  22.  
  23.  
  24. /public/home: Get the forum's public data (e.g., number of users, posts).
  25. /public/posts: List the top 10 most commented or most recent posts.
  26. /public/register: Register a new user.
  27. /public/login: Log in a user.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement