Note: for
creating
,updating
anddeleting
recitation user must haveadmin permissions.
api.ayat.com/v1/recitations
POST
{
"jwt": "ffff",
"recitation_name": "Title",
"recitation_description": "description",
// other recitation's data.
}
{
"status": "created"
}
or
{
"status": "<Duplicate resource codes: 7>"
}
{
"error": "user is unauthorized"
}
api.ayat.com/v1/recitations/{id}
PUT
{
"jwt": "ffff"
// which data to be updated
}
{
"status": "updated"
}
{
"error": "user is unauthorized"
}
api.ayat.com/v1/recitations/
GET
{}
{
"recitation": [recitaion_ids]
}
{
"error": "Content not found"
}
api.ayat.com/v1/recitations/{id}
GET
{
"jwt": "32132143432432"
}
{
//recitation data.
}
{
"error": "user is unauthorized"
}
or
{
"error": "Content not found"
}
api.ayat.com/v1/recitations/{id}
DELETE
{
"jwt": "ffff"
}
{
"status": "deleted"
}
{
"error": "user is unauthorized"
}
api.ayat.com/v1/recitations/{id}/enrollments
POST
{
"JWT": "adfgv5erw85s3"
}
{
"status": "enrolled"
}
{
"error": "<Duplicate resource codes: 5>"
}
or
{
"error": "user is unauthorized"
}
api.ayat.com/v1/recitations/{id}/enrollments
DELETE
{
"JWT": "adfgv5erw85s3"
}
{
"status": "success"
}
{
"error": "<Duplicate resource codes: 6>"
}
or
{
"error": "user is unauthorized"
}
api.ayat.com/v1/recitations/{id}/assignments
POST
{
"JWT": "adfgv5erw85s3",
"student_ids": [student ids]
// Data to be added
}
{
"status": "created"
}
{
"error": "user is unauthorized"
}
api.ayat.com/v1/recitations/{id}/assignments/{id}
PUT
{
"JWT": "adfgv5erw85s3",
// assignment's data to be updated
}
{
"status": "success"
}
{
"error": "user is unauthorized"
}
api.ayat.com/v1/recitations/{id}/assignments/filter
GET
{
"JWT": "adfgv5erw85s3"
}
{
"status": "success"
}
{
"error": "user is unauthorized"
}
api.ayat.com/v1/recitations/{id}/assignments/{id}
DELETE
{
"JWT": "adfgv5erw85s3"
}
{
"status": "success"
}
{
"error": "user is unauthorized"
}