POST
/api/v1/courses/new
curl \
--request POST 'http://localhost:3500/api/v1/courses/new' \
--header "Content-Type: application/json" \
--data '{"name":"string","description":"string"}'
Request examples
{
"name": "string",
"description": "string"
}
Response examples (201)
{
"message": "string",
"course": {
"name": "string",
"description": "string",
"createdAt": "2025-05-04T09:42:00Z",
"updatedAt": "2025-05-04T09:42:00Z",
"id": "string"
}
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}