Please enable JavaScript.
Coggle requires JavaScript to display documents.
Sitemap - api/v1/ - Coggle Diagram
Sitemap - api/v1/
/auth
/register POST -> registerUser
/login POST -> loginUser
/forgetPassword POST -> handleForgetPassword
/refreshUser POST -> handleRefreshUser
/resetPassword POST -> handleResetPassword
/logout POST -> logoutUser
/verifyEmail POST -> verifyUserEmail
/user
/profile
GET -> getProfile
PATCH -> updateProfile
DELETE -> deleteAccount
/:userId GET -> getUserPublicProfile
/avatar POST -> uploadAvatar
/cover POST -> uploadCoverImage
/subscribe/:bloggerId POST -> ToggleSubscribeToBlogger
/myComments GET -> getUserComments
/admin
/users
GET -> getAllUsers
/:userId
PATCH -> updateUserRole
DELETE -> banUser
/blogs
GET -> getAllBlogs
/:blogId
PATCH -> moderateBlog
DELETE -> deleteBlog
/reports
GET -> getAllReports
/:reportId
PATCH -> resolveReport
DELETE -> deleteReport
/comments/:commentId
PATCH -> moderateComment
DELETE -> deleteComment
/blog
/
GET -> getBlogs (search, drafts, myBlogs, savedBlogs included)
POST -> createBlog
DELETE -> deleteBlogs
/:id
GET -> getBlog
PATCH -> updateBlog (publish included)
DELETE -> deleteBlog
/save POST -> addBlogToSaved
/tags GET -> getBlogTags
/dashboard/analytics
/overview GET -> getOverviewAnalytics
/posts GET -> getPostAnalytics
/audience GET -> getAudienceAnalytics
/notif
GET -> getUserNotifs
/:notifId
PATCH -> markNotifAsRead
DELETE -> deleteNotif
/settings
GET -> getUserSettings
PATCH -> updateUserSettings
/comment
/:blogId
GET -> getComments
POST -> addComments
/:commentId
PUT -> updateComment
DELETE -> deleteComment
/like POST -> toggleCommentLike
/report
/new POST -> createReport