πŸ”Œ REST API Design

RESTful endpoints follow consistent naming and structure for clarity.

Examples:

  • POST /api/auth/register

  • POST /api/auth/login

  • GET /api/courses

  • GET /api/lessons/:id

  • POST /api/progress/update

  • POST /api/cart

  • GET /api/certificates/:userId

Principles followed:

  • Resource-based endpoints

  • Secure with JWT tokens

  • JSON responses

  • Proper HTTP status codes

Last updated