GET
/courses/{courseId}/publish
curl \
-X GET http://localhost:3003/api/dev/courses/5b0dd6b8-7440-4c5c-8292-124217cd77d0/publish \
-H "Authorization: Bearer $ACCESS_TOKEN"
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: 281.698
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 96
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 62
ETag: W/"3e-wvibTbT5fxat3Bt2GnTlgYzitLY"
Date: Tue, 05 Sep 2023 15:59:36 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 200,
"message": "Le cours a été publié avec success"
}
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: 281.698
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 96
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 62
ETag: W/"3e-wvibTbT5fxat3Bt2GnTlgYzitLY"
Date: Tue, 05 Sep 2023 15:59:36 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}
Response examples (400)
# 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: 264.175
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 80
ETag: W/"50-WHCnbF9o/ldSFRlTwP+/a3ncJ6Y"
Date: Tue, 05 Sep 2023 15:59:53 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 400,
"message": "Oups! Il semblerait que la référence soient incorrect"
}
Response examples (400)
# 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: 264.175
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 80
ETag: W/"50-WHCnbF9o/ldSFRlTwP+/a3ncJ6Y"
Date: Tue, 05 Sep 2023 15:59:53 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}
Response examples (401)
# 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: 225.202
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 92
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 128
ETag: W/"80-HSc6p6YI9gsUT+IZDwZ2wCV0nD0"
Date: Tue, 05 Sep 2023 16:00:32 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 401,
"message": "Oups! Il semblerait que vous ne possédez pas les autorisations nécessaires pour avoir ces ressources."
}
Response examples (401)
# 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: 225.202
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 92
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 128
ETag: W/"80-HSc6p6YI9gsUT+IZDwZ2wCV0nD0"
Date: Tue, 05 Sep 2023 16:00:32 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}