Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Possible Endpoints:
- /posts: Create and view posts.
- /posts/{postId}: View, edit, or delete a specific post.
- /auth/login: Login a user and return a token.
- /auth/logout: Log out the user.
- /auth/refresh: Refresh authentication token.
- /admin/users: Search for users and manage their status (block, unblock).
- /admin/users/{userId}/make-admin: Make a user an admin.
- /admin/posts: List and delete any post.
- /users/profile: Get and update the user’s profile.
- /users/posts: Create, edit, view, and delete user's posts.
- /users/posts/{postId}/comments: Add comments to posts.
- /users/posts/{postId}/like: Like or dislike a post.
- /public/home: Get the forum's public data (e.g., number of users, posts).
- /public/posts: List the top 10 most commented or most recent posts.
- /public/register: Register a new user.
- /public/login: Log in a user.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement