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
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Response
Find Course by ID
POST
/courses/find
Finds a course by its ID.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Body
Name | Type | Description |
---|---|---|
| number | Course ID |
Response
Get Chapters of a Course
POST
/courses/chapters
Retrieves chapters of a specific course.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Body
Name | Type | Description |
---|---|---|
| number | Course ID |
Response
Get Lessons of a Chapter
POST
/courses/lessons
Retrieves lessons of a specific chapter.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Body
Name | Type | Description |
---|---|---|
| number | Chapter ID |
Response
Subscription Endpoints
Get User Subscription Status
GET
/subscription/status
Retrieves the subscription status of the authenticated user.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Response
User Endpoints
Get User Information
POST
/user/get
Retrieves information about the authenticated user.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Response
Last updated