api.ayat.com/v1/programs/{id}/courses/{id}/lessons
GET
{
"jwt": "32132143432432"
}
code : 200
Json retrive list of lessons with IDs
code: 403
{
"error": "user is unauthorized"
}
api.ayat.com/v1/programs/{id}/courses/{id}/lessons
GET
{
"jwt": "32132143432432"
}
code : 200
{
"name": "lessonName",
"order": "1",
"objective": "123123",
"content": "content example"
}
code: 403
{
"error": "user is unauthorized"
}
api.ayat.com/v1/programs/{id}/courses/{id}/lessons
POST
{
"jwt": "32132143432432",
"order": "1",
"name": "example",
"objective": "123123",
"content": "content example"
}
code : 200
{
"status": "<Duplicate resource codes>"
}
code: 403
{
"error": "user is unauthorized"
}
api.ayat.com/v1/programs/{id}/courses/{id}/lessons/{id}
PUT
{
"jwt": "32132143432432",
"order": "1",
"name": "example",
"objective": "123123",
"content": "content example"
}
code 200
:
{
"status": "updated"
}
or
{
"status": "<Duplicate resource codes>"
}
api.ayat.com/v1/programs/{id}/courses/{id}/lessons/{id}
DELETE
{
"jwt": "ffff"
}
code 200
:
{
"status": "deleted"
}