-
Notifications
You must be signed in to change notification settings - Fork 5
Migrate : Update old API endpoints for new version #9
Copy link
Copy link
Open
Description
We have old api end points for the old website. Now, we are moving to the new website so we imorve manyu feature and functionallity so we need more api point for those functions.
checkout old API endpoint: https://github.com/aaryan359/opencoursebackend
Here is a list of api point needed :
Auth
- POST /api/auth/register → create account
- POST /api/auth/login → login, return JWT
- POST /api/auth/logout → logout (optional)
- GET /api/auth/me → current user profile
- POST /api/auth/refresh-token → refresh JWT (optional)
User
- GET /api/users/:id → public user profile
- PUT /api/users/me → update own profile
- PUT /api/users/me/password → change password
- GET /api/users/me/stats → learning stats
- GET /api/users/me/uploads → videos uploaded by user
Admin:
- GET /api/admin/users → list users
- PUT /api/admin/users/:id/role → change role
- BAN /api/admin/users/:id → block user (optional)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels