Course Detail
curl --request GET \
--url https://lms.terang.ai/api/courses/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://lms.terang.ai/api/courses/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://lms.terang.ai/api/courses/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lms.terang.ai/api/courses/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lms.terang.ai/api/courses/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://lms.terang.ai/api/courses/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lms.terang.ai/api/courses/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"course": {
"id": 1,
"name": "<string>",
"description": "<string>",
"instructor": "<string>",
"type": "self_paced",
"enrollmentType": "code",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"teacherId": "<string>",
"institutionId": 123,
"categoryId": 123,
"courseCode": "<string>",
"eventCode": "<string>",
"isPublished": true,
"nilaiKum": 123,
"coverPicture": "<string>",
"isPurchasable": true,
"price": "500000",
"priceNonMember": "<string>",
"priceMahasiswa": "<string>",
"currency": "IDR",
"previewMode": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"teacherName": "<string>",
"teacherEmail": "jsmith@example.com",
"category": {
"id": 1,
"code": "MANAJEMEN",
"name": "Manajemen"
},
"modules": [
{
"id": 123,
"courseId": 123,
"name": "<string>",
"description": "<string>",
"orderIndex": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"chapters": [
{
"id": 123,
"moduleId": 123,
"name": "<string>",
"content": "<string>",
"orderIndex": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"quizzes": [
{
"id": 123,
"chapterId": 123,
"name": "<string>",
"description": "<string>",
"quizType": "multiple_choice",
"minimumScore": 70,
"timeLimit": 10,
"questions": [
{
"id": 123,
"quizId": 123,
"questionText": "<string>",
"questionType": "multiple_choice",
"options": [
{
"id": "a",
"text": "<string>"
}
],
"orderIndex": 123,
"points": 10
}
]
}
]
}
]
}
],
"moduleQuizzes": [
{
"id": 123,
"chapterId": 123,
"name": "<string>",
"description": "<string>",
"quizType": "multiple_choice",
"minimumScore": 70,
"timeLimit": 10,
"questions": [
{
"id": 123,
"quizId": 123,
"questionText": "<string>",
"questionType": "multiple_choice",
"options": [
{
"id": "a",
"text": "<string>"
}
],
"orderIndex": 123,
"points": 10
}
]
}
],
"enrollmentCount": 123,
"studentCount": 123,
"admissions": {
"requirements": "Minimum 3 tahun pengalaman manajerial",
"applicationDeadline": "2023-11-07T05:31:56Z",
"prerequisites": "Tidak ada"
},
"academics": {
"requirements": "Minimum 3 tahun pengalaman manajerial",
"applicationDeadline": "2023-11-07T05:31:56Z",
"prerequisites": "Tidak ada"
},
"tuitionAndFinancing": {
"requirements": "Minimum 3 tahun pengalaman manajerial",
"applicationDeadline": "2023-11-07T05:31:56Z",
"prerequisites": "Tidak ada"
},
"careers": {
"requirements": "Minimum 3 tahun pengalaman manajerial",
"applicationDeadline": "2023-11-07T05:31:56Z",
"prerequisites": "Tidak ada"
},
"studentExperience": {
"requirements": "Minimum 3 tahun pengalaman manajerial",
"applicationDeadline": "2023-11-07T05:31:56Z",
"prerequisites": "Tidak ada"
}
}
}{
"success": false,
"error": "Rate limit exceeded"
}{
"success": false,
"error": "Rate limit exceeded"
}{
"success": false,
"error": "Rate limit exceeded"
}{
"success": false,
"error": "Rate limit exceeded"
}Courses
Course Detail
Get detailed information about a specific course, including modules, chapters, quizzes, and detail sections.
GET
/
api
/
courses
/
{id}
Course Detail
curl --request GET \
--url https://lms.terang.ai/api/courses/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://lms.terang.ai/api/courses/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://lms.terang.ai/api/courses/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lms.terang.ai/api/courses/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lms.terang.ai/api/courses/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://lms.terang.ai/api/courses/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lms.terang.ai/api/courses/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"course": {
"id": 1,
"name": "<string>",
"description": "<string>",
"instructor": "<string>",
"type": "self_paced",
"enrollmentType": "code",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"teacherId": "<string>",
"institutionId": 123,
"categoryId": 123,
"courseCode": "<string>",
"eventCode": "<string>",
"isPublished": true,
"nilaiKum": 123,
"coverPicture": "<string>",
"isPurchasable": true,
"price": "500000",
"priceNonMember": "<string>",
"priceMahasiswa": "<string>",
"currency": "IDR",
"previewMode": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"teacherName": "<string>",
"teacherEmail": "jsmith@example.com",
"category": {
"id": 1,
"code": "MANAJEMEN",
"name": "Manajemen"
},
"modules": [
{
"id": 123,
"courseId": 123,
"name": "<string>",
"description": "<string>",
"orderIndex": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"chapters": [
{
"id": 123,
"moduleId": 123,
"name": "<string>",
"content": "<string>",
"orderIndex": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"quizzes": [
{
"id": 123,
"chapterId": 123,
"name": "<string>",
"description": "<string>",
"quizType": "multiple_choice",
"minimumScore": 70,
"timeLimit": 10,
"questions": [
{
"id": 123,
"quizId": 123,
"questionText": "<string>",
"questionType": "multiple_choice",
"options": [
{
"id": "a",
"text": "<string>"
}
],
"orderIndex": 123,
"points": 10
}
]
}
]
}
]
}
],
"moduleQuizzes": [
{
"id": 123,
"chapterId": 123,
"name": "<string>",
"description": "<string>",
"quizType": "multiple_choice",
"minimumScore": 70,
"timeLimit": 10,
"questions": [
{
"id": 123,
"quizId": 123,
"questionText": "<string>",
"questionType": "multiple_choice",
"options": [
{
"id": "a",
"text": "<string>"
}
],
"orderIndex": 123,
"points": 10
}
]
}
],
"enrollmentCount": 123,
"studentCount": 123,
"admissions": {
"requirements": "Minimum 3 tahun pengalaman manajerial",
"applicationDeadline": "2023-11-07T05:31:56Z",
"prerequisites": "Tidak ada"
},
"academics": {
"requirements": "Minimum 3 tahun pengalaman manajerial",
"applicationDeadline": "2023-11-07T05:31:56Z",
"prerequisites": "Tidak ada"
},
"tuitionAndFinancing": {
"requirements": "Minimum 3 tahun pengalaman manajerial",
"applicationDeadline": "2023-11-07T05:31:56Z",
"prerequisites": "Tidak ada"
},
"careers": {
"requirements": "Minimum 3 tahun pengalaman manajerial",
"applicationDeadline": "2023-11-07T05:31:56Z",
"prerequisites": "Tidak ada"
},
"studentExperience": {
"requirements": "Minimum 3 tahun pengalaman manajerial",
"applicationDeadline": "2023-11-07T05:31:56Z",
"prerequisites": "Tidak ada"
}
}
}{
"success": false,
"error": "Rate limit exceeded"
}{
"success": false,
"error": "Rate limit exceeded"
}{
"success": false,
"error": "Rate limit exceeded"
}{
"success": false,
"error": "Rate limit exceeded"
}⌘I