TUTORHUB
FRONTEND GUIDE FOR AI CODING AGENTS - PART 7 - TutorCatalog Service
This document is a part of a REST API guide for the tutorhub project. It is designed for AI agents that will generate frontend code to consume the project’s backend.
This document provides extensive instruction for the usage of tutorCatalog
Service Access
TutorCatalog service management is handled through service specific base urls.
TutorCatalog service may be deployed to the preview server, staging server, or production server. Therefore,it has 3 access URLs. The frontend application must support all deployment environments during development, and the user should be able to select the target API server on the login page (already handled in first part.).
For the tutorCatalog service, the base URLs are:
- Preview:
https://tutorhub.prw.mindbricks.com/tutorcatalog-api - Staging:
https://tutorhub-stage.mindbricks.co/tutorcatalog-api - Production:
https://tutorhub.mindbricks.co/tutorcatalog-api
Scope
TutorCatalog Service Description
Handles tutor public profiles, course packs, public categories, and course pack materials with strict public/private access enforcement for course pack content and materials.
TutorCatalog service provides apis and business logic for following data objects in tutorhub application. Each data object may be either a central domain of the application data structure or a related helper data object for a central concept. Note that data object concept is equal to table concept in the database, in the service database each data object is represented as a db table scheme and the object instances as table rows.
tutorProfile Data Object: Public-facing profile for a tutor, includes certifications, experience, subjects, bio, and photo.
coursePack Data Object: Publicly listed course pack/structured course offered by a tutor.
courseMaterial Data Object: Material (file, video, link, doc) attached to coursePack. Only visible to the owning tutor and students enrolled in the course pack.
courseCategory Data Object: Represents a course subject/category; used for filtering and navigation. Admin-maintained.
TutorCatalog Service Frontend Description By The Backend Architect
- Tutor profiles and courses are public and discoverable for all users.
- Authenticated users can see more details and interact (enroll, etc.) via other services (not here).
- Tutors can CRUD their own profile, courses, and materials.
- Public lists/searches available for filtering by category, subject, profile, strict/flexible scheduling, and published status.
- Materials (files, links) visible only to enrolled students and the owning tutor.
- Categories shown automatically with all courses for navigation/filtering.
- Admin actions handled elsewhere; this service focuses on public and owner-level CRUD.
API Structure
Object Structure of a Successful Response
When the service processes requests successfully, it wraps the requested resource(s) within a JSON envelope. This envelope includes the data and essential metadata such as configuration details and pagination information, providing context to the client.
HTTP Status Codes:
- 200 OK: Returned for successful GET, LIST, UPDATE, or DELETE operations, indicating that the request was processed successfully.
- 201 Created: Returned for CREATE operations, indicating that the resource was created successfully.
Success Response Format:
For successful operations, the response includes a "status": "OK" property, signaling that the request executed successfully. The structure of a successful response is outlined below:
{
"status":"OK",
"statusCode": 200,
"elapsedMs":126,
"ssoTime":120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName":"products",
"method":"GET",
"action":"list",
"appVersion":"Version",
"rowCount":3,
"products":[{},{},{}],
"paging": {
"pageNumber":1,
"pageRowCount":25,
"totalRowCount":3,
"pageCount":1
},
"filters": [],
"uiPermissions": []
}
products: In this example, this key contains the actual response content, which may be a single object or an array of objects depending on the operation.
Additional Data
Each API may include additional data besides the main data object, depending on the business logic of the API. These will be provided in each API’s response signature.
Error Response
If a request encounters an issue—whether due to a logical fault or a technical problem—the service responds with a standardized JSON error structure. The HTTP status code indicates the nature of the error, using commonly recognized codes for clarity:
- 400 Bad Request: The request was improperly formatted or contained invalid parameters.
- 401 Unauthorized: The request lacked a valid authentication token; login is required.
- 403 Forbidden: The current token does not grant access to the requested resource.
- 404 Not Found: The requested resource was not found on the server.
- 500 Internal Server Error: The server encountered an unexpected condition.
Each error response is structured to provide meaningful insight into the problem, assisting in efficient diagnosis and resolution.
{
"result": "ERR",
"status": 400,
"message": "errMsg_organizationIdisNotAValidID",
"errCode": 400,
"date": "2024-03-19T12:13:54.124Z",
"detail": "String"
}
TutorProfile Data Object
Public-facing profile for a tutor, includes certifications, experience, subjects, bio, and photo.
TutorProfile Data Object Frontend Description By The Backend Architect
Tutor Approval Workflow
Approval Status
- Every tutorProfile has a
profileStatusfield (enum):- pending: Profile submitted by the tutor and awaiting admin review.
- approved: Profile has been reviewed and accepted by an admin. Tutor is fully visible in public listings, and can publish course packs.
- rejected: Profile was rejected by an admin. Tutor must review reasons (optional admin comment/notification) and resubmit.
Required Actions
- Tutor (when profile is pending or rejected):
- Cannot publish any courses or be shown in public tutor/course pack listings.
- Sees a prominent banner/message in their dashboard noting: “Your profile is pending approval.” or “Your profile was rejected. Please review feedback and resubmit.”
- Can submit profile edits for resubmission if status is ‘rejected’ (ideally guided by admin feedback).
- Admin:
- Sees all tutor profiles in a moderation/approval dashboard with filtering by status.
- Must use the
updateTutorProfileAPI/route to set ‘approved’ or ‘rejected’. - When approving: updates profileStatus = approved. Tutor becomes publicly visible and can create/publish course packs.
- When rejecting: updates profileStatus = rejected (optionally includes rejection reason). Tutor receives visible reason/cue to edit/resubmit.
Tutor-Facing UX Cues
- When
profileStatus=pending: Dashboard disables publish/listing actions, overlays banner like “Your profile is under review by our admins. Approval may take 1-2 business days.” - When
profileStatus=rejected: Red banner with reason(s) from admin, clear edit/resubmit call-to-action, disables publish/listing actions until resubmission is accepted. - When
profileStatus=approved: All usual actions enabled. Profile listed publicly, can publish courses.
Admin-Facing UI Guidance
- Approval dashboard should provide filters for status, easy action buttons to ‘Approve’/‘Reject’ (triggering
updateTutorProfile). - On reject, prompt for reason. On approve, optional (confirmation only).
User Stories
- As a Tutor:
- I want to be clearly informed if my profile is under review or rejected, so I can understand what’s next.
- I want to see actionable messages if rejected, with admin feedback, and a way to edit and resubmit.
- I want assurance that my profile won’t be public or allow course creation until approved.
- If my profile is approved, I want to immediately be able to create/publish courses and appear in searches.
- As an Admin:
- I need to review pending tutor profiles and approve or reject with a provided reason.
- After rejection, I want tutors to see my feedback and be able to resubmit.
- I want an efficient dashboard to filter/search pending tutors and update status with minimal friction.
- Edge Cases:
- Tutor repeatedly rejected => each rejection shows latest reason, and only can resubmit after another edit.
- If tutor edits their profile after approval, system may revert status to ‘pending’ (if desired—should be clarified per business rule).
- Tutor attempts course publishing or visibility actions while pending/rejected: Block with clear explanation.
User Stories (continued)
-
US45 (Tutor — Profile Approval):
- As a tutor, I want my profile to be reviewed and approved by the admin before it becomes public so that students can trust the tutors on the platform.
-
US46 (Admin — Approve/Reject Tutor Profiles):
- As an admin, I want to review and approve or reject tutor profiles so that only qualified tutors can offer courses on the platform.
-
US47 (System/Tutor — Course Pack Restriction):
- As the platform, I want to allow only approved tutors to create course packs so that unverified tutors cannot publish courses.
Bullet Summary: User Stories
- Tutor:
- See clear status (pending/approved/rejected) on dashboard
- Receive rejection reason and actionable guidance
- Blocked from course publishing/listing unless approved
- Able to resubmit after rejection
- Admin:
- Filter and view tutor profiles by status
- Approve/reject profiles via updateTutorProfile UI, with optional reason on reject
- Provide rejection feedback
- Workflow supports multiple reviews/resubmissions and edge cases
TutorProfile Data Object Properties
TutorProfile data object has got following properties that are represented as table fields in the database scheme. These properties don’t stand just for data storage, but each may have different settings to manage the business logic.
| Property | Type | IsArray | Required | Secret | Description |
|---|---|---|---|---|---|
tutorId |
ID | false | Yes | No | - |
certifications |
String | true | No | No | Tutor’s certifications (list of certificates, degrees, etc.). |
experience |
Text | false | No | No | Brief experience summary or bio. |
subjects |
String | true | No | No | Areas of expertise/subjects offered for teaching. |
bio |
Text | false | No | No | Optional full-length bio/description. |
profilePhoto |
String | false | No | No | Public profile photo URL (may be external or uploaded). |
profileStatus |
Enum | false | Yes | No | - |
displayName |
String | false | No | No | Tutor’s display name, copied from auth user fullname at profile creation. |
- Required properties are mandatory for creating objects and must be provided in the request body if no default value, formula or session bind is set.
Array Properties
certifications subjects
Array properties can hold multiple values. Array properties should be respected according to their multiple structure in the frontend in any user input for them. Please use multiple input components for the array proeprties when needed.
Enum Properties
Enum properties are defined with a set of allowed values, ensuring that only valid options can be assigned to them. The enum options value will be stored as strings in the database, but when a data object is created an additional property with the same name plus an idx suffix will be created, which will hold the index of the selected enum option. You can use the {fieldName_idx} property to sort by the enum value or when your enum options represent a hiyerarchy of values. In the frontend input components, enum type properties should only accept values from an option component that lists the enum options.
- profileStatus: [pending, approved, rejected]
Relation Properties
tutorId
Mindbricks supports relations between data objects, allowing you to define how objects are linked together. The relations may reference to a data object either in this service or in another service. Id the reference is remote, backend handles the relations through service communication or elastic search. These relations should be respected in the frontend so that instaead of showing the related objects id, the frontend should list human readable values from other data objects. If the relation points to another service, frontend should use the referenced service api in case it needs related data. The relation logic is montly handled in backend so the api responses feeds the frontend about the relational data. In mmost cases the api response will provide the relational data as well as the main one.
In frontend, please ensure that,
1- instaead of these relational ids you show the main human readable field of the related target data (like name), 2- if this data object needs a user input of these relational ids, you should provide a combobox with the list of possible records or (a searchbox) to select with the realted target data object main human readable field.
- tutorId: ID
Relation to
user.id
The target object is a parent object, meaning that the relation is a one-to-many relationship from target to this object.
Required: Yes
Filter Properties
tutorId profileStatus
Filter properties are used to define parameters that can be used in query filters, allowing for dynamic data retrieval based on user input or predefined criteria. These properties are automatically mapped as API parameters in the listing API’s.
-
tutorId: ID has a filter named
tutorId -
profileStatus: Enum has a filter named
profileStatus
CoursePack Data Object
Publicly listed course pack/structured course offered by a tutor.
CoursePack Data Object Properties
CoursePack data object has got following properties that are represented as table fields in the database scheme. These properties don’t stand just for data storage, but each may have different settings to manage the business logic.
| Property | Type | IsArray | Required | Secret | Description |
|---|---|---|---|---|---|
tutorProfileId |
ID | Yes | No | - | |
title |
String | false | Yes | No | - |
description |
Text | false | No | No | - |
price |
Double | false | Yes | No | - |
category |
String | false | Yes | No | - |
schedulingType |
Enum | false | Yes | No | - |
minWeeklyClasses |
Integer | false | No | No | - |
preliminaryMeetingRequired |
Boolean | false | Yes | No | - |
isPublished |
Boolean | false | Yes | No | - |
maxDailyLessons |
Integer | false | No | No | - |
requiredClassesCount |
Integer | false | No | No | - |
moderationStatus |
Enum | false | No | No | Content moderation status. |
moderationNote |
String | false | No | No | Admin note for flagged/removed course packs. |
maxPeriodValue |
Integer | false | No | No | Maximum time period value for strict scheduling (e.g. 3 for 3 months) |
maxPeriodUnit |
Enum | false | No | No | Time unit for maxPeriodValue in strict scheduling |
- Required properties are mandatory for creating objects and must be provided in the request body if no default value, formula or session bind is set.
Enum Properties
Enum properties are defined with a set of allowed values, ensuring that only valid options can be assigned to them. The enum options value will be stored as strings in the database, but when a data object is created an additional property with the same name plus an idx suffix will be created, which will hold the index of the selected enum option. You can use the {fieldName_idx} property to sort by the enum value or when your enum options represent a hiyerarchy of values. In the frontend input components, enum type properties should only accept values from an option component that lists the enum options.
-
schedulingType: [flexible, strict]
-
moderationStatus: [approved, flagged, removed]
-
maxPeriodUnit: [weeks, months]
Relation Properties
tutorProfileId category
Mindbricks supports relations between data objects, allowing you to define how objects are linked together. The relations may reference to a data object either in this service or in another service. Id the reference is remote, backend handles the relations through service communication or elastic search. These relations should be respected in the frontend so that instaead of showing the related objects id, the frontend should list human readable values from other data objects. If the relation points to another service, frontend should use the referenced service api in case it needs related data. The relation logic is montly handled in backend so the api responses feeds the frontend about the relational data. In mmost cases the api response will provide the relational data as well as the main one.
In frontend, please ensure that,
1- instaead of these relational ids you show the main human readable field of the related target data (like name), 2- if this data object needs a user input of these relational ids, you should provide a combobox with the list of possible records or (a searchbox) to select with the realted target data object main human readable field.
- tutorProfileId: ID
Relation to
tutorProfile.id
The target object is a parent object, meaning that the relation is a one-to-many relationship from target to this object.
Required: Yes
- category: String
Relation to
courseCategory.name
The target object is a parent object, meaning that the relation is a one-to-many relationship from target to this object.
Required: No
Filter Properties
tutorProfileId title category schedulingType isPublished moderationStatus
Filter properties are used to define parameters that can be used in query filters, allowing for dynamic data retrieval based on user input or predefined criteria. These properties are automatically mapped as API parameters in the listing API’s.
-
tutorProfileId: ID has a filter named
tutorProfileId -
title: String has a filter named
courseTitle -
category: String has a filter named
category -
schedulingType: Enum has a filter named
scheduling -
isPublished: Boolean has a filter named
published -
moderationStatus: Enum has a filter named
moderationStatus
CourseMaterial Data Object
Material (file, video, link, doc) attached to coursePack. Only visible to the owning tutor and students enrolled in the course pack.
CourseMaterial Data Object Frontend Description By The Backend Architect
- Created and managed by course’s tutor.
- Only visible to students enrolled in the pack and the tutor (not public).
- Often accessed post-enrollment via BFF/data view—but single API allows secure download/listing for eligible users.
CourseMaterial Data Object Properties
CourseMaterial data object has got following properties that are represented as table fields in the database scheme. These properties don’t stand just for data storage, but each may have different settings to manage the business logic.
| Property | Type | IsArray | Required | Secret | Description |
|---|---|---|---|---|---|
coursePackId |
ID | false | Yes | No | FK to coursePack. |
fileUrl |
String | false | Yes | No | URL for file/video/document. For downloads or video links (protected). |
fileType |
Enum | false | Yes | No | Type: file, video, document, externalLink. |
title |
String | false | Yes | No | Material title (unique per pack). |
description |
Text | false | No | No | Additional details about the material resource. |
linkUrl |
String | false | No | No | Optional URL for external resource (if fileType = externalLink). |
- Required properties are mandatory for creating objects and must be provided in the request body if no default value, formula or session bind is set.
Enum Properties
Enum properties are defined with a set of allowed values, ensuring that only valid options can be assigned to them. The enum options value will be stored as strings in the database, but when a data object is created an additional property with the same name plus an idx suffix will be created, which will hold the index of the selected enum option. You can use the {fieldName_idx} property to sort by the enum value or when your enum options represent a hiyerarchy of values. In the frontend input components, enum type properties should only accept values from an option component that lists the enum options.
- fileType: [file, video, document, externalLink]
Relation Properties
coursePackId
Mindbricks supports relations between data objects, allowing you to define how objects are linked together. The relations may reference to a data object either in this service or in another service. Id the reference is remote, backend handles the relations through service communication or elastic search. These relations should be respected in the frontend so that instaead of showing the related objects id, the frontend should list human readable values from other data objects. If the relation points to another service, frontend should use the referenced service api in case it needs related data. The relation logic is montly handled in backend so the api responses feeds the frontend about the relational data. In mmost cases the api response will provide the relational data as well as the main one.
In frontend, please ensure that,
1- instaead of these relational ids you show the main human readable field of the related target data (like name), 2- if this data object needs a user input of these relational ids, you should provide a combobox with the list of possible records or (a searchbox) to select with the realted target data object main human readable field.
- coursePackId: ID
Relation to
coursePack.id
The target object is a parent object, meaning that the relation is a one-to-many relationship from target to this object.
Required: Yes
Filter Properties
fileType
Filter properties are used to define parameters that can be used in query filters, allowing for dynamic data retrieval based on user input or predefined criteria. These properties are automatically mapped as API parameters in the listing API’s.
- fileType: Enum has a filter named
type
CourseCategory Data Object
Represents a course subject/category; used for filtering and navigation. Admin-maintained.
CourseCategory Data Object Frontend Description By The Backend Architect
- Managed by admins for site-wide course organization; visible to all users.
- Used as label/tag on coursePack objects for filtering and browsing.
- Categories displayed with all courses on public site. Only admins can create/edit/delete categories.
CourseCategory Data Object Properties
CourseCategory data object has got following properties that are represented as table fields in the database scheme. These properties don’t stand just for data storage, but each may have different settings to manage the business logic.
| Property | Type | IsArray | Required | Secret | Description |
|---|---|---|---|---|---|
name |
String | false | Yes | No | Unique category/subject name. |
description |
Text | false | No | No | Category description. |
icon |
String | false | No | No | Emoji icon displayed next to the category name (e.g. 📐, 🗣️, 🎵) |
- Required properties are mandatory for creating objects and must be provided in the request body if no default value, formula or session bind is set.
Filter Properties
name
Filter properties are used to define parameters that can be used in query filters, allowing for dynamic data retrieval based on user input or predefined criteria. These properties are automatically mapped as API parameters in the listing API’s.
- name: String has a filter named
name
Default CRUD APIs
For each data object, the backend architect may designate default APIs for standard operations (create, update, delete, get, list). These are the APIs that frontend CRUD forms and AI agents should use for basic record management. If no default is explicitly set (isDefaultApi), the frontend generator auto-discovers the most general API for each operation.
TutorProfile Default APIs
| Operation | API Name | Route | Explicitly Set |
|---|---|---|---|
| Create | createTutorProfile |
/v1/tutorprofiles |
Auto |
| Update | updateTutorProfile |
/v1/tutorprofiles/:tutorProfileId |
Yes |
| Delete | none | - | Auto |
| Get | getTutorProfile |
/v1/tutorprofiles/:tutorProfileId |
Yes |
| List | listTutorProfiles |
/v1/tutorprofiles |
Auto |
CoursePack Default APIs
Display Label Property: title — Use this property as the human-readable label when displaying records of this data object (e.g., in dropdowns, references).
| Operation | API Name | Route | Explicitly Set |
|---|---|---|---|
| Create | createCoursePack |
/v1/coursepacks |
Yes |
| Update | updateCoursePack |
/v1/coursepacks/:coursePackId |
Yes |
| Delete | deleteCoursePack |
/v1/coursepacks/:coursePackId |
Yes |
| Get | getCoursePack |
/v1/coursepacks/:coursePackId |
Yes |
| List | listCoursePacks |
/v1/coursepacks |
Auto |
CourseMaterial Default APIs
Display Label Property: title — Use this property as the human-readable label when displaying records of this data object (e.g., in dropdowns, references).
| Operation | API Name | Route | Explicitly Set |
|---|---|---|---|
| Create | createCourseMaterial |
/v1/coursematerials |
Yes |
| Update | updateCourseMaterial |
/v1/coursematerials/:courseMaterialId |
Yes |
| Delete | deleteCourseMaterial |
/v1/coursematerials/:courseMaterialId |
Yes |
| Get | getCourseMaterial |
/v1/coursematerials/:courseMaterialId |
Yes |
| List | listCourseMaterials |
/v1/coursematerials |
Yes |
CourseCategory Default APIs
Display Label Property: name — Use this property as the human-readable label when displaying records of this data object (e.g., in dropdowns, references).
| Operation | API Name | Route | Explicitly Set |
|---|---|---|---|
| Create | createCourseCategory |
/v1/coursecategories |
Yes |
| Update | updateCourseCategory |
/v1/coursecategories/:courseCategoryId |
Yes |
| Delete | deleteCourseCategory |
/v1/coursecategories/:courseCategoryId |
Yes |
| Get | getCourseCategory |
/v1/coursecategories/:name |
Yes |
| List | listCourseCategories |
/v1/coursecategories |
Yes |
When building CRUD forms for a data object, use the default create/update APIs listed above. The form fields should correspond to the API’s body parameters. For relation fields, render a dropdown loaded from the related object’s list API using the display label property.
API Reference
Create Tutorprofile API
Rest Route
The createTutorProfile API REST controller can be triggered via the following route:
/v1/tutorprofiles
Rest Request Parameters
The createTutorProfile api has got 8 regular request parameters
| Parameter | Type | Required | Population |
|---|---|---|---|
| tutorId | ID | true | request.body?.[“tutorId”] |
| bio | Text | false | request.body?.[“bio”] |
| experience | Text | false | request.body?.[“experience”] |
| profileStatus | String | false | request.body?.[“profileStatus”] |
| certifications | String | false | request.body?.[“certifications”] |
| subjects | String | false | request.body?.[“subjects”] |
| profilePhoto | String | false | request.body?.[“profilePhoto”] |
| displayName | String | false | request.body?.[“displayName”] |
| tutorId : ID of the auth user who is becoming a tutor | |||
| bio : Tutor’s biography | |||
| experience : Tutor’s experience/qualifications | |||
| profileStatus : Approval status - should be ‘approved’ when created from auth | |||
| certifications : Tutor’s certifications (list of certificates, degrees, etc.). | |||
| subjects : Areas of expertise/subjects offered for teaching. | |||
| profilePhoto : Public profile photo URL (may be external or uploaded). | |||
| displayName : Tutor’s display name, copied from auth user fullname at profile creation. |
REST Request To access the api you can use the REST controller with the path POST /v1/tutorprofiles
axios({
method: 'POST',
url: '/v1/tutorprofiles',
data: {
tutorId:"ID",
bio:"Text",
experience:"Text",
profileStatus:"String",
certifications:"String",
subjects:"String",
profilePhoto:"String",
displayName:"String",
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "201",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "tutorProfile",
"method": "POST",
"action": "create",
"appVersion": "Version",
"rowCount": 1,
"tutorProfile": {
"id": "ID",
"tutorId": "ID",
"certifications": "String",
"experience": "Text",
"subjects": "String",
"bio": "Text",
"profilePhoto": "String",
"profileStatus": "Enum",
"profileStatus_idx": "Integer",
"displayName": "String",
"isActive": true,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Update Tutorprofile API
[Default update API] — This is the designated default update API for the tutorProfile data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Tutor updates their own profile. Only owner tutor or admin can update.
Rest Route
The updateTutorProfile API REST controller can be triggered via the following route:
/v1/tutorprofiles/:tutorProfileId
Rest Request Parameters
The updateTutorProfile api has got 9 regular request parameters
| Parameter | Type | Required | Population |
|---|---|---|---|
| tutorProfileId | ID | true | request.params?.[“tutorProfileId”] |
| tutorId | ID | false | request.body?.[“tutorId”] |
| certifications | String | false | request.body?.[“certifications”] |
| experience | Text | false | request.body?.[“experience”] |
| subjects | String | false | request.body?.[“subjects”] |
| bio | Text | false | request.body?.[“bio”] |
| profilePhoto | String | false | request.body?.[“profilePhoto”] |
| profileStatus | Enum | false | request.body?.[“profileStatus”] |
| displayName | String | false | request.body?.[“displayName”] |
| tutorProfileId : This id paremeter is used to select the required data object that will be updated | |||
| tutorId : | |||
| certifications : Tutor’s certifications (list of certificates, degrees, etc.). | |||
| experience : Brief experience summary or bio. | |||
| subjects : Areas of expertise/subjects offered for teaching. | |||
| bio : Optional full-length bio/description. | |||
| profilePhoto : Public profile photo URL (may be external or uploaded). | |||
| profileStatus : | |||
| displayName : Tutor’s display name, copied from auth user fullname at profile creation. |
REST Request To access the api you can use the REST controller with the path PATCH /v1/tutorprofiles/:tutorProfileId
axios({
method: 'PATCH',
url: `/v1/tutorprofiles/${tutorProfileId}`,
data: {
tutorId:"ID",
certifications:"String",
experience:"Text",
subjects:"String",
bio:"Text",
profilePhoto:"String",
profileStatus:"Enum",
displayName:"String",
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "tutorProfile",
"method": "PATCH",
"action": "update",
"appVersion": "Version",
"rowCount": 1,
"tutorProfile": {
"id": "ID",
"tutorId": "ID",
"certifications": "String",
"experience": "Text",
"subjects": "String",
"bio": "Text",
"profilePhoto": "String",
"profileStatus": "Enum",
"profileStatus_idx": "Integer",
"displayName": "String",
"isActive": true,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Get Tutorprofile API
[Default get API] — This is the designated default get API for the tutorProfile data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Publicly get a tutor profile by ID. No login required.
Rest Route
The getTutorProfile API REST controller can be triggered via the following route:
/v1/tutorprofiles/:tutorProfileId
Rest Request Parameters
The getTutorProfile api has got 1 regular request parameter
| Parameter | Type | Required | Population |
|---|---|---|---|
| tutorProfileId | ID | true | request.params?.[“tutorProfileId”] |
| tutorProfileId : This id paremeter is used to query the required data object. |
REST Request To access the api you can use the REST controller with the path GET /v1/tutorprofiles/:tutorProfileId
axios({
method: 'GET',
url: `/v1/tutorprofiles/${tutorProfileId}`,
data: {
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "tutorProfile",
"method": "GET",
"action": "get",
"appVersion": "Version",
"rowCount": 1,
"tutorProfile": {
"id": "ID",
"tutorId": "ID",
"certifications": "String",
"experience": "Text",
"subjects": "String",
"bio": "Text",
"profilePhoto": "String",
"profileStatus": "Enum",
"profileStatus_idx": "Integer",
"displayName": "String",
"isActive": true,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
List Tutorprofiles API
Rest Route
The listTutorProfiles API REST controller can be triggered via the following route:
/v1/tutorprofiles
Rest Request Parameters
The listTutorProfiles api has got no request parameters.
REST Request To access the api you can use the REST controller with the path GET /v1/tutorprofiles
axios({
method: 'GET',
url: '/v1/tutorprofiles',
data: {
},
params: {
}
});
REST Response
This route’s response is constrained to a select list of properties, and therefore does not encompass all attributes of the resource.
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "tutorProfiles",
"method": "GET",
"action": "list",
"appVersion": "Version",
"rowCount": "\"Number\"",
"tutorProfiles": [
{
"isActive": true
},
{},
{}
],
"paging": {
"pageNumber": "Number",
"pageRowCount": "NUmber",
"totalRowCount": "Number",
"pageCount": "Number"
},
"filters": [],
"uiPermissions": []
}
Create Coursepack API
[Default create API] — This is the designated default create API for the coursePack data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Tutor creates a new course offering. Only accessible to tutors (or admin, for moderation).
Rest Route
The createCoursePack API REST controller can be triggered via the following route:
/v1/coursepacks
Rest Request Parameters
The createCoursePack api has got 14 regular request parameters
| Parameter | Type | Required | Population |
|---|---|---|---|
| tutorProfileId | ID | true | request.body?.[“tutorProfileId”] |
| title | String | true | request.body?.[“title”] |
| description | Text | false | request.body?.[“description”] |
| price | Double | true | request.body?.[“price”] |
| category | String | true | request.body?.[“category”] |
| schedulingType | Enum | true | request.body?.[“schedulingType”] |
| minWeeklyClasses | Integer | false | request.body?.[“minWeeklyClasses”] |
| preliminaryMeetingRequired | Boolean | true | request.body?.[“preliminaryMeetingRequired”] |
| isPublished | Boolean | true | request.body?.[“isPublished”] |
| maxDailyLessons | Integer | false | request.body?.[“maxDailyLessons”] |
| requiredClassesCount | Integer | false | request.body?.[“requiredClassesCount”] |
| moderationNote | String | false | request.body?.[“moderationNote”] |
| maxPeriodValue | Integer | false | request.body?.[“maxPeriodValue”] |
| maxPeriodUnit | Enum | false | request.body?.[“maxPeriodUnit”] |
| tutorProfileId : | |||
| title : | |||
| description : | |||
| price : | |||
| category : | |||
| schedulingType : | |||
| minWeeklyClasses : | |||
| preliminaryMeetingRequired : | |||
| isPublished : | |||
| maxDailyLessons : | |||
| requiredClassesCount : | |||
| moderationNote : Admin note for flagged/removed course packs. | |||
| maxPeriodValue : Maximum time period value for strict scheduling (e.g. 3 for 3 months) | |||
| maxPeriodUnit : Time unit for maxPeriodValue in strict scheduling |
REST Request To access the api you can use the REST controller with the path POST /v1/coursepacks
axios({
method: 'POST',
url: '/v1/coursepacks',
data: {
tutorProfileId:"ID",
title:"String",
description:"Text",
price:"Double",
category:"String",
schedulingType:"Enum",
minWeeklyClasses:"Integer",
preliminaryMeetingRequired:"Boolean",
isPublished:"Boolean",
maxDailyLessons:"Integer",
requiredClassesCount:"Integer",
moderationNote:"String",
maxPeriodValue:"Integer",
maxPeriodUnit:"Enum",
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "201",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "coursePack",
"method": "POST",
"action": "create",
"appVersion": "Version",
"rowCount": 1,
"coursePack": {
"id": "ID",
"tutorProfileId": "ID",
"title": "String",
"description": "Text",
"price": "Double",
"category": "String",
"schedulingType": "Enum",
"schedulingType_idx": "Integer",
"minWeeklyClasses": "Integer",
"preliminaryMeetingRequired": "Boolean",
"isPublished": "Boolean",
"maxDailyLessons": "Integer",
"requiredClassesCount": "Integer",
"moderationStatus": "Enum",
"moderationStatus_idx": "Integer",
"moderationNote": "String",
"maxPeriodValue": "Integer",
"maxPeriodUnit": "Enum",
"maxPeriodUnit_idx": "Integer",
"isActive": true,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Update Coursepack API
[Default update API] — This is the designated default update API for the coursePack data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Tutor updates their course pack. Only owner tutor or admin can update. Ownership is verified via tutorProfile and user session.
Rest Route
The updateCoursePack API REST controller can be triggered via the following route:
/v1/coursepacks/:coursePackId
Rest Request Parameters
The updateCoursePack api has got 16 regular request parameters
| Parameter | Type | Required | Population |
|---|---|---|---|
| coursePackId | ID | true | request.params?.[“coursePackId”] |
| tutorProfileId | ID | request.body?.[“tutorProfileId”] | |
| title | String | false | request.body?.[“title”] |
| description | Text | false | request.body?.[“description”] |
| price | Double | false | request.body?.[“price”] |
| category | String | false | request.body?.[“category”] |
| schedulingType | Enum | false | request.body?.[“schedulingType”] |
| minWeeklyClasses | Integer | false | request.body?.[“minWeeklyClasses”] |
| preliminaryMeetingRequired | Boolean | false | request.body?.[“preliminaryMeetingRequired”] |
| isPublished | Boolean | false | request.body?.[“isPublished”] |
| maxDailyLessons | Integer | false | request.body?.[“maxDailyLessons”] |
| requiredClassesCount | Integer | false | request.body?.[“requiredClassesCount”] |
| moderationStatus | Enum | false | request.body?.[“moderationStatus”] |
| moderationNote | String | false | request.body?.[“moderationNote”] |
| maxPeriodValue | Integer | false | request.body?.[“maxPeriodValue”] |
| maxPeriodUnit | Enum | false | request.body?.[“maxPeriodUnit”] |
| coursePackId : This id paremeter is used to select the required data object that will be updated | |||
| tutorProfileId : | |||
| title : | |||
| description : | |||
| price : | |||
| category : | |||
| schedulingType : | |||
| minWeeklyClasses : | |||
| preliminaryMeetingRequired : | |||
| isPublished : | |||
| maxDailyLessons : | |||
| requiredClassesCount : | |||
| moderationStatus : Content moderation status. | |||
| moderationNote : Admin note for flagged/removed course packs. | |||
| maxPeriodValue : Maximum time period value for strict scheduling (e.g. 3 for 3 months) | |||
| maxPeriodUnit : Time unit for maxPeriodValue in strict scheduling |
REST Request To access the api you can use the REST controller with the path PATCH /v1/coursepacks/:coursePackId
axios({
method: 'PATCH',
url: `/v1/coursepacks/${coursePackId}`,
data: {
tutorProfileId:"ID",
title:"String",
description:"Text",
price:"Double",
category:"String",
schedulingType:"Enum",
minWeeklyClasses:"Integer",
preliminaryMeetingRequired:"Boolean",
isPublished:"Boolean",
maxDailyLessons:"Integer",
requiredClassesCount:"Integer",
moderationStatus:"Enum",
moderationNote:"String",
maxPeriodValue:"Integer",
maxPeriodUnit:"Enum",
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "coursePack",
"method": "PATCH",
"action": "update",
"appVersion": "Version",
"rowCount": 1,
"coursePack": {
"id": "ID",
"tutorProfileId": "ID",
"title": "String",
"description": "Text",
"price": "Double",
"category": "String",
"schedulingType": "Enum",
"schedulingType_idx": "Integer",
"minWeeklyClasses": "Integer",
"preliminaryMeetingRequired": "Boolean",
"isPublished": "Boolean",
"maxDailyLessons": "Integer",
"requiredClassesCount": "Integer",
"moderationStatus": "Enum",
"moderationStatus_idx": "Integer",
"moderationNote": "String",
"maxPeriodValue": "Integer",
"maxPeriodUnit": "Enum",
"maxPeriodUnit_idx": "Integer",
"isActive": true,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Delete Coursepack API
[Default delete API] — This is the designated default delete API for the coursePack data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Tutor deletes their course pack. Only owner tutor or admin can delete. Tutors are blocked if active enrollments exist. Admin can force-delete with a reason, which triggers pro-rata refunds and student notifications.
API Frontend Description By The Backend Architect
Tutors cannot delete a course with active enrollments — they should unpublish instead. Admin can force-delete with a mandatory reason; this triggers automatic pro-rata refunds and email notifications to affected students.
Rest Route
The deleteCoursePack API REST controller can be triggered via the following route:
/v1/coursepacks/:coursePackId
Rest Request Parameters
The deleteCoursePack api has got 2 regular request parameters
| Parameter | Type | Required | Population |
|---|---|---|---|
| coursePackId | ID | true | request.params?.[“coursePackId”] |
| removalReason | String | request.body?.[“removalReason”] | |
| coursePackId : This id paremeter is used to select the required data object that will be deleted | |||
| removalReason : Required when admin deletes a course with active enrollments. Reason is sent to affected students via email. |
REST Request To access the api you can use the REST controller with the path DELETE /v1/coursepacks/:coursePackId
axios({
method: 'DELETE',
url: `/v1/coursepacks/${coursePackId}`,
data: {
removalReason:"String",
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "coursePack",
"method": "DELETE",
"action": "delete",
"appVersion": "Version",
"rowCount": 1,
"coursePack": {
"id": "ID",
"tutorProfileId": "ID",
"title": "String",
"description": "Text",
"price": "Double",
"category": "String",
"schedulingType": "Enum",
"schedulingType_idx": "Integer",
"minWeeklyClasses": "Integer",
"preliminaryMeetingRequired": "Boolean",
"isPublished": "Boolean",
"maxDailyLessons": "Integer",
"requiredClassesCount": "Integer",
"moderationStatus": "Enum",
"moderationStatus_idx": "Integer",
"moderationNote": "String",
"maxPeriodValue": "Integer",
"maxPeriodUnit": "Enum",
"maxPeriodUnit_idx": "Integer",
"isActive": false,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Get Coursepack API
[Default get API] — This is the designated default get API for the coursePack data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Publicly get a course pack by ID. No login required.
Rest Route
The getCoursePack API REST controller can be triggered via the following route:
/v1/coursepacks/:coursePackId
Rest Request Parameters
The getCoursePack api has got 1 regular request parameter
| Parameter | Type | Required | Population |
|---|---|---|---|
| coursePackId | ID | true | request.params?.[“coursePackId”] |
| coursePackId : This id paremeter is used to query the required data object. |
REST Request To access the api you can use the REST controller with the path GET /v1/coursepacks/:coursePackId
axios({
method: 'GET',
url: `/v1/coursepacks/${coursePackId}`,
data: {
},
params: {
}
});
REST Response
This route’s response is constrained to a select list of properties, and therefore does not encompass all attributes of the resource.
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "coursePack",
"method": "GET",
"action": "get",
"appVersion": "Version",
"rowCount": 1,
"coursePack": {
"tutorProfile": {
"tutorId": "ID",
"certifications": "String",
"experience": "Text",
"subjects": "String",
"bio": "Text",
"profilePhoto": "String",
"displayName": "String"
},
"isActive": true
}
}
List Coursepacks API
Rest Route
The listCoursePacks API REST controller can be triggered via the following route:
/v1/coursepacks
Rest Request Parameters
The listCoursePacks api has got no request parameters.
REST Request To access the api you can use the REST controller with the path GET /v1/coursepacks
axios({
method: 'GET',
url: '/v1/coursepacks',
data: {
},
params: {
}
});
REST Response
This route’s response is constrained to a select list of properties, and therefore does not encompass all attributes of the resource.
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "coursePacks",
"method": "GET",
"action": "list",
"appVersion": "Version",
"rowCount": "\"Number\"",
"coursePacks": [
{
"tutorProfile": [
{
"tutorId": "ID",
"certifications": "String",
"experience": "Text",
"subjects": "String",
"bio": "Text",
"profilePhoto": "String",
"displayName": "String"
},
{},
{}
],
"isActive": true
},
{},
{}
],
"paging": {
"pageNumber": "Number",
"pageRowCount": "NUmber",
"totalRowCount": "Number",
"pageCount": "Number"
},
"filters": [],
"uiPermissions": []
}
Create Coursematerial API
[Default create API] — This is the designated default create API for the courseMaterial data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Tutor uploads a material to a course pack they own. Only tutor or admin can create.
Rest Route
The createCourseMaterial API REST controller can be triggered via the following route:
/v1/coursematerials
Rest Request Parameters
The createCourseMaterial api has got 6 regular request parameters
| Parameter | Type | Required | Population |
|---|---|---|---|
| coursePackId | ID | true | request.body?.[“coursePackId”] |
| fileUrl | String | true | request.body?.[“fileUrl”] |
| fileType | Enum | true | request.body?.[“fileType”] |
| title | String | true | request.body?.[“title”] |
| description | Text | false | request.body?.[“description”] |
| linkUrl | String | false | request.body?.[“linkUrl”] |
| coursePackId : FK to coursePack. | |||
| fileUrl : URL for file/video/document. For downloads or video links (protected). | |||
| fileType : Type: file, video, document, externalLink. | |||
| title : Material title (unique per pack). | |||
| description : Additional details about the material resource. | |||
| linkUrl : Optional URL for external resource (if fileType = externalLink). |
REST Request To access the api you can use the REST controller with the path POST /v1/coursematerials
axios({
method: 'POST',
url: '/v1/coursematerials',
data: {
coursePackId:"ID",
fileUrl:"String",
fileType:"Enum",
title:"String",
description:"Text",
linkUrl:"String",
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "201",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "courseMaterial",
"method": "POST",
"action": "create",
"appVersion": "Version",
"rowCount": 1,
"courseMaterial": {
"id": "ID",
"coursePackId": "ID",
"fileUrl": "String",
"fileType": "Enum",
"fileType_idx": "Integer",
"title": "String",
"description": "Text",
"linkUrl": "String",
"isActive": true,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Update Coursematerial API
[Default update API] — This is the designated default update API for the courseMaterial data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Tutor updates course material. Only course’s tutor or admin can update.
Rest Route
The updateCourseMaterial API REST controller can be triggered via the following route:
/v1/coursematerials/:courseMaterialId
Rest Request Parameters
The updateCourseMaterial api has got 6 regular request parameters
| Parameter | Type | Required | Population |
|---|---|---|---|
| courseMaterialId | ID | true | request.params?.[“courseMaterialId”] |
| fileUrl | String | false | request.body?.[“fileUrl”] |
| fileType | Enum | false | request.body?.[“fileType”] |
| title | String | false | request.body?.[“title”] |
| description | Text | false | request.body?.[“description”] |
| linkUrl | String | false | request.body?.[“linkUrl”] |
| courseMaterialId : This id paremeter is used to select the required data object that will be updated | |||
| fileUrl : URL for file/video/document. For downloads or video links (protected). | |||
| fileType : Type: file, video, document, externalLink. | |||
| title : Material title (unique per pack). | |||
| description : Additional details about the material resource. | |||
| linkUrl : Optional URL for external resource (if fileType = externalLink). |
REST Request To access the api you can use the REST controller with the path PATCH /v1/coursematerials/:courseMaterialId
axios({
method: 'PATCH',
url: `/v1/coursematerials/${courseMaterialId}`,
data: {
fileUrl:"String",
fileType:"Enum",
title:"String",
description:"Text",
linkUrl:"String",
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "courseMaterial",
"method": "PATCH",
"action": "update",
"appVersion": "Version",
"rowCount": 1,
"courseMaterial": {
"id": "ID",
"coursePackId": "ID",
"fileUrl": "String",
"fileType": "Enum",
"fileType_idx": "Integer",
"title": "String",
"description": "Text",
"linkUrl": "String",
"isActive": true,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Delete Coursematerial API
[Default delete API] — This is the designated default delete API for the courseMaterial data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Tutor deletes course material. Only course’s tutor or admin can delete.
Rest Route
The deleteCourseMaterial API REST controller can be triggered via the following route:
/v1/coursematerials/:courseMaterialId
Rest Request Parameters
The deleteCourseMaterial api has got 1 regular request parameter
| Parameter | Type | Required | Population |
|---|---|---|---|
| courseMaterialId | ID | true | request.params?.[“courseMaterialId”] |
| courseMaterialId : This id paremeter is used to select the required data object that will be deleted |
REST Request To access the api you can use the REST controller with the path DELETE /v1/coursematerials/:courseMaterialId
axios({
method: 'DELETE',
url: `/v1/coursematerials/${courseMaterialId}`,
data: {
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "courseMaterial",
"method": "DELETE",
"action": "delete",
"appVersion": "Version",
"rowCount": 1,
"courseMaterial": {
"id": "ID",
"coursePackId": "ID",
"fileUrl": "String",
"fileType": "Enum",
"fileType_idx": "Integer",
"title": "String",
"description": "Text",
"linkUrl": "String",
"isActive": false,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Get Coursematerial API
[Default get API] — This is the designated default get API for the courseMaterial data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Get course material. Only accessible by tutor owner or enrolled student or admin.
Rest Route
The getCourseMaterial API REST controller can be triggered via the following route:
/v1/coursematerials/:courseMaterialId
Rest Request Parameters
The getCourseMaterial api has got 1 regular request parameter
| Parameter | Type | Required | Population |
|---|---|---|---|
| courseMaterialId | ID | true | request.params?.[“courseMaterialId”] |
| courseMaterialId : This id paremeter is used to query the required data object. |
REST Request To access the api you can use the REST controller with the path GET /v1/coursematerials/:courseMaterialId
axios({
method: 'GET',
url: `/v1/coursematerials/${courseMaterialId}`,
data: {
},
params: {
}
});
REST Response
This route’s response is constrained to a select list of properties, and therefore does not encompass all attributes of the resource.
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "courseMaterial",
"method": "GET",
"action": "get",
"appVersion": "Version",
"rowCount": 1,
"courseMaterial": {
"coursePack": {
"tutorProfileId": "ID",
"title": "String"
},
"isActive": true
}
}
List Coursematerials API
[Default list API] — This is the designated default list API for the courseMaterial data object. Frontend generators and AI agents should use this API for standard CRUD operations.
List course materials for a coursePack. Only accessible to enrolled students, tutor owner, or admin.
Rest Route
The listCourseMaterials API REST controller can be triggered via the following route:
/v1/coursematerials
Rest Request Parameters
The listCourseMaterials api has got no request parameters.
REST Request To access the api you can use the REST controller with the path GET /v1/coursematerials
axios({
method: 'GET',
url: '/v1/coursematerials',
data: {
},
params: {
}
});
REST Response
This route’s response is constrained to a select list of properties, and therefore does not encompass all attributes of the resource.
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "courseMaterials",
"method": "GET",
"action": "list",
"appVersion": "Version",
"rowCount": "\"Number\"",
"courseMaterials": [
{
"coursePack": [
{
"tutorProfileId": "ID",
"title": "String"
},
{},
{}
],
"isActive": true
},
{},
{}
],
"paging": {
"pageNumber": "Number",
"pageRowCount": "NUmber",
"totalRowCount": "Number",
"pageCount": "Number"
},
"filters": [],
"uiPermissions": []
}
Create Coursecategory API
[Default create API] — This is the designated default create API for the courseCategory data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Admin creates new course category/subject tag.
Rest Route
The createCourseCategory API REST controller can be triggered via the following route:
/v1/coursecategories
Rest Request Parameters
The createCourseCategory api has got 3 regular request parameters
| Parameter | Type | Required | Population |
|---|---|---|---|
| name | String | true | request.body?.[“name”] |
| description | Text | false | request.body?.[“description”] |
| icon | String | false | request.body?.[“icon”] |
| name : Unique category/subject name. | |||
| description : Category description. | |||
| icon : Emoji icon displayed next to the category name (e.g. 📐, 🗣️, 🎵) |
REST Request To access the api you can use the REST controller with the path POST /v1/coursecategories
axios({
method: 'POST',
url: '/v1/coursecategories',
data: {
name:"String",
description:"Text",
icon:"String",
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "201",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "courseCategory",
"method": "POST",
"action": "create",
"appVersion": "Version",
"rowCount": 1,
"courseCategory": {
"id": "ID",
"name": "String",
"description": "Text",
"icon": "String",
"isActive": true,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Update Coursecategory API
[Default update API] — This is the designated default update API for the courseCategory data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Admin updates course category/subject tag.
Rest Route
The updateCourseCategory API REST controller can be triggered via the following route:
/v1/coursecategories/:courseCategoryId
Rest Request Parameters
The updateCourseCategory api has got 4 regular request parameters
| Parameter | Type | Required | Population |
|---|---|---|---|
| courseCategoryId | ID | true | request.params?.[“courseCategoryId”] |
| name | String | false | request.body?.[“name”] |
| description | Text | false | request.body?.[“description”] |
| icon | String | false | request.body?.[“icon”] |
| courseCategoryId : This id paremeter is used to select the required data object that will be updated | |||
| name : Unique category/subject name. | |||
| description : Category description. | |||
| icon : Emoji icon displayed next to the category name (e.g. 📐, 🗣️, 🎵) |
REST Request To access the api you can use the REST controller with the path PATCH /v1/coursecategories/:courseCategoryId
axios({
method: 'PATCH',
url: `/v1/coursecategories/${courseCategoryId}`,
data: {
name:"String",
description:"Text",
icon:"String",
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "courseCategory",
"method": "PATCH",
"action": "update",
"appVersion": "Version",
"rowCount": 1,
"courseCategory": {
"id": "ID",
"name": "String",
"description": "Text",
"icon": "String",
"isActive": true,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Delete Coursecategory API
[Default delete API] — This is the designated default delete API for the courseCategory data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Admin deletes a course category/subject tag. Only admin allowed.
Rest Route
The deleteCourseCategory API REST controller can be triggered via the following route:
/v1/coursecategories/:courseCategoryId
Rest Request Parameters
The deleteCourseCategory api has got 1 regular request parameter
| Parameter | Type | Required | Population |
|---|---|---|---|
| courseCategoryId | ID | true | request.params?.[“courseCategoryId”] |
| courseCategoryId : This id paremeter is used to select the required data object that will be deleted |
REST Request To access the api you can use the REST controller with the path DELETE /v1/coursecategories/:courseCategoryId
axios({
method: 'DELETE',
url: `/v1/coursecategories/${courseCategoryId}`,
data: {
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "courseCategory",
"method": "DELETE",
"action": "delete",
"appVersion": "Version",
"rowCount": 1,
"courseCategory": {
"id": "ID",
"name": "String",
"description": "Text",
"icon": "String",
"isActive": false,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
Get Coursecategory API
[Default get API] — This is the designated default get API for the courseCategory data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Publicly fetch a course category/subject by name. No login required.
Rest Route
The getCourseCategory API REST controller can be triggered via the following route:
/v1/coursecategories/:name
Rest Request Parameters
The getCourseCategory api has got 1 regular request parameter
| Parameter | Type | Required | Population |
|---|---|---|---|
| name | String | true | request.params?.[“name”] |
| name : Unique category/subject name… The parameter is used to query data. |
REST Request To access the api you can use the REST controller with the path GET /v1/coursecategories/:name
axios({
method: 'GET',
url: `/v1/coursecategories/${name}`,
data: {
},
params: {
}
});
REST Response
This route’s response is constrained to a select list of properties, and therefore does not encompass all attributes of the resource.
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "courseCategory",
"method": "GET",
"action": "get",
"appVersion": "Version",
"rowCount": 1,
"courseCategory": {
"isActive": true
}
}
List Coursecategories API
[Default list API] — This is the designated default list API for the courseCategory data object. Frontend generators and AI agents should use this API for standard CRUD operations.
Publicly list all course categories/subjects for navigation, filtering, and display. No login required.
Rest Route
The listCourseCategories API REST controller can be triggered via the following route:
/v1/coursecategories
Rest Request Parameters
The listCourseCategories api has got no request parameters.
REST Request To access the api you can use the REST controller with the path GET /v1/coursecategories
axios({
method: 'GET',
url: '/v1/coursecategories',
data: {
},
params: {
}
});
REST Response
This route’s response is constrained to a select list of properties, and therefore does not encompass all attributes of the resource.
{
"status": "OK",
"statusCode": "200",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "courseCategories",
"method": "GET",
"action": "list",
"appVersion": "Version",
"rowCount": "\"Number\"",
"courseCategories": [
{
"isActive": true
},
{},
{}
],
"paging": {
"pageNumber": "Number",
"pageRowCount": "NUmber",
"totalRowCount": "Number",
"pageCount": "Number"
},
"filters": [],
"uiPermissions": []
}
On Tutorapplicationreviewed API
API Frontend Description By The Backend Architect
Kafka event handler that creates tutor profile when auth service approves a tutor application. Listens to tutorhub-auth-service-tutorapplication-reviewed topic.
Rest Route
The onTutorApplicationReviewed API REST controller can be triggered via the following route:
/v1/ontutorapplicationreviewed
Rest Request Parameters
The onTutorApplicationReviewed api has got 8 regular request parameters
| Parameter | Type | Required | Population |
|---|---|---|---|
| tutorId | ID | true | request.body?.[“tutorId”] |
| certifications | String | false | request.body?.[“certifications”] |
| experience | Text | false | request.body?.[“experience”] |
| subjects | String | false | request.body?.[“subjects”] |
| bio | Text | false | request.body?.[“bio”] |
| profilePhoto | String | false | request.body?.[“profilePhoto”] |
| profileStatus | Enum | true | request.body?.[“profileStatus”] |
| displayName | String | false | request.body?.[“displayName”] |
| tutorId : | |||
| certifications : Tutor’s certifications (list of certificates, degrees, etc.). | |||
| experience : Brief experience summary or bio. | |||
| subjects : Areas of expertise/subjects offered for teaching. | |||
| bio : Optional full-length bio/description. | |||
| profilePhoto : Public profile photo URL (may be external or uploaded). | |||
| profileStatus : | |||
| displayName : Tutor’s display name, copied from auth user fullname at profile creation. |
REST Request To access the api you can use the REST controller with the path POST /v1/ontutorapplicationreviewed
axios({
method: 'POST',
url: '/v1/ontutorapplicationreviewed',
data: {
tutorId:"ID",
certifications:"String",
experience:"Text",
subjects:"String",
bio:"Text",
profilePhoto:"String",
profileStatus:"Enum",
displayName:"String",
},
params: {
}
});
REST Response
{
"status": "OK",
"statusCode": "201",
"elapsedMs": 126,
"ssoTime": 120,
"source": "db",
"cacheKey": "hexCode",
"userId": "ID",
"sessionId": "ID",
"requestId": "ID",
"dataName": "tutorProfile",
"method": "POST",
"action": "create",
"appVersion": "Version",
"rowCount": 1,
"tutorProfile": {
"id": "ID",
"tutorId": "ID",
"certifications": "String",
"experience": "Text",
"subjects": "String",
"bio": "Text",
"profilePhoto": "String",
"profileStatus": "Enum",
"profileStatus_idx": "Integer",
"displayName": "String",
"isActive": true,
"recordVersion": "Integer",
"createdAt": "Date",
"updatedAt": "Date",
"_owner": "ID"
}
}
After this prompt, the user may give you new instructions to update the output of this prompt or provide subsequent prompts about the project.