Getting Started
Welcome to the documentation for our API! This API provides endpoints for managing courses, chapters, lessons, user subscriptions, and user information retrieval.
Authentication
All endpoints require authentication using Token Bearer. Users need to authenticate themselves to access the API.
Base URL
The base URL for all API endpoints is: https://ravab.ir/api
Course Endpoints
Get All Courses
GET
/courses/all
Retrieves all available courses.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Response
Find Course by ID
POST
/courses/find
Finds a course by its ID.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
id
number
Course ID
Response
Get Chapters of a Course
POST
/courses/chapters
Retrieves chapters of a specific course.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
id
number
Course ID
Response
Get Lessons of a Chapter
POST
/courses/lessons
Retrieves lessons of a specific chapter.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
id
number
Chapter ID
Response
Subscription Endpoints
Get User Subscription Status
GET
/subscription/status
Retrieves the subscription status of the authenticated user.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Response
User Endpoints
Get User Information
POST
/user/get
Retrieves information about the authenticated user.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Response
Last updated