Retrieve a Subject
Testing
GET
/courses/{courseId}/subjects/{id}
version
: the term used to search and filter the subject version based on the latest version or specific version using a mongo string id.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.aladia.io/v2/courses//subjects/?version=latest' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string",
"courseId": "string",
"title": "string",
"color": "string",
"description": "string",
"lectures": [
"string"
],
"teachers": [
"string"
],
"createdAt": "string",
"updatedAt": "string"
}'
Response Response Example
200 - Success
{
"id": "673c8db1509c9de428fc77af",
"title": "2024-11-19T13:08:01.343Z",
"color": "#C70039",
"lectures": [],
"teachers": [
"673c13275b422429d48fb55a",
"673c13665b422429d48fb5a9"
],
"courseId": "673c8cf5509c9de428fc76f3",
"createdAt": "Tue Nov 19 2024 16:08:01 GMT+0300 (Arabian Standard Time)",
"updatedAt": "Tue Nov 19 2024 16:08:01 GMT+0300 (Arabian Standard Time)",
"description": "Subject 1 description"
}
Request
Path Params
courseId
stringÂ
required
id
stringÂ
required
Query Params
version
stringÂ
optional
The value is either
latest
or version timestamp like 2024_09_19_12:32:06
Example:
latest
Header Params
apikey
stringÂ
optional
Example:
{{apikey}}
Body Params application/json
Responses
Modified at 2025-04-08 10:55:23