GET
/courses/{courseId}
curl \
-X GET http://localhost:3003/api/dev/courses/5b0dd6b8-7440-4c5c-8292-124217cd77d0 \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
200 WITH RES
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 59.513
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 85
X-RateLimit-Reset: Tue Sep 05 2023 16:44:05 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 1802
ETag: W/"70a-P5EVPMeC82M56wY4FCuhRiOH43I"
Date: Tue, 05 Sep 2023 15:43:05 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 200,
"result": {
"count": 1,
"courses": [
{
"courseId": "5b0dd6b8-7440-4c5c-8292-124217cd77d0",
"DoC": "2023-09-04T06:04:58.000Z",
"createdBy": {
"name": "Mohamed Hassen",
"email": "mohamedhassen.jahha@assistdigital.com",
"phone": "58076667",
"avatar": null,
"userId": "af7c1fe6-d669-414e-b066-e9733f0de7a8",
"lastName": "JAHHA",
"phoneCode": "+216",
"committeesID": "af7c1fe6-d669-414e-b066-e9733f0de7a8"
},
"lastUpdatedBy": {
"name": "Mohamed Hassen",
"email": "mohamedhassen.jahha@assistdigital.com",
"phone": "58076667",
"avatar": null,
"userId": "af7c1fe6-d669-414e-b066-e9733f0de7a8",
"lastName": "JAHHA",
"phoneCode": "+216",
"committeesID": "af7c1fe6-d669-414e-b066-e9733f0de7a8"
},
"lastUpdate": null,
"courseTitle": "Formation Premier secours",
"courseSubTitle": "Premier Niveau",
"description": "Formation Premier niveau",
"subject": "FPS",
"price": 30,
"dateStart": "2023-09-03T23:00:00.000Z",
"dateEnd": "2023-09-29T23:00:00.000Z",
"prerequisites": null,
"keywords": "[]",
"courseType": "FIRST-AID",
"sectionOfMatter": "SECOURISME",
"isPublic": 1,
"accessCode": null,
"isOpenToRegister": 1,
"isOnline": 1,
"language": "FR",
"minAge": 18,
"maxAge": 65,
"minParticipants": 10,
"maxParticipants": 20,
"coverPicture": null,
"gallery": "[]",
"location": "Maison des associassions",
"region": "Ben Arous",
"city": "Rades",
"contactPerson": "Mohamed hassen JAHHA",
"contactPhone": "+21658076667",
"contactEmail": "john.doe@example.com",
"isCertified": 1,
"isPublished": 0,
"isPayableOnLine": 0,
"committeesID": "af7c1fe6-d669-414e-b066-e9733f0de7a8",
"isArchived": 0,
"committee": {
"city": "Tunis",
"region": "Tunis",
"adresse": "19, Rue d'Angleterre",
"nameArabe": "الهيئة المركزية",
"nameLatin": "Comité central",
"committeesID": "af7c1fe6-d669-414e-b066-e9733f0de7a8",
"primaryEmail": "contact@croissant-rouge.tn",
"primaryPhone": "+21671325572",
"secondaryEmail": null,
"secondaryPhone": "+21671320630"
}
}
]
}
}
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 59.513
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 85
X-RateLimit-Reset: Tue Sep 05 2023 16:44:05 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 1802
ETag: W/"70a-P5EVPMeC82M56wY4FCuhRiOH43I"
Date: Tue, 05 Sep 2023 15:43:05 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 200,
"result": {
"count": 0,
"courses": []
}
}
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 59.513
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 85
X-RateLimit-Reset: Tue Sep 05 2023 16:44:05 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 1802
ETag: W/"70a-P5EVPMeC82M56wY4FCuhRiOH43I"
Date: Tue, 05 Sep 2023 15:43:05 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}