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