You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
401 token is requred if the token is not provided in the url
401 password and confirm password must match
498 Invalid token if the token is altered
200 Password updated if all is good
College
Get all colleges /api/colleges
Request GET
/api/colleges
Response
[
{
"id": "81521f18-76e6-41fb-81a6-34e8076cd684",
"englishName": "Faculty of Engineering",
"arabicName": "كلية الهندسة"
},
{
"id": "b85ba1f6-38fe-4017-be83-26b75ec71e4a",
"englishName": "Faculty of Pharmacy",
"arabicName": "كلية الصيدلة"
},
{
"id": "5e4f9d29-f938-4f06-a5ed-020f2944b9bb",
"englishName": "Faculty of Arts",
"arabicName": "كلية الفنون"
}, ....
]
** 200 OK is the only reponse you can get whether the id is correct or not
{
"id": "81521f18-76e6-41fb-81a6-34e8076cd684",
"englishName": "Faculty of Engineering",
"arabicName": "كلية الهندسة"
}
** 200 OK is the only reponse you can get whether the id is correct or not
Create College /api/college
Request POST
{
"englishName": "Faculty of raafatxx",
"arabicName": "كلية الصيدلة"
}
** both english and arabic name are mandatory
Response
201 along with the created object if the request is ok
400 missing english or arabic name if there are any missing fields
Update college /api/college/:id
Request PUT
{
"englishName": "Faculty of Engineeringxx"
}
** update englishname or arabicname or both
Response
200 ok along with the updated object if all is good
422 Invalid Arguments if request is empty or wrong keys
the input name must be "csv" **case sensetive
don't forget the collegeId as a query parameter
the only constraint is the nationalId
uncreated students are returned in an array
Response
201 on sucess with an array of failed students
400 on failure
Create user route /api/student
Request POST
{
"email": "raaafat@eng.suez.edu.eg",
"englishName": "Salem El Hamood",
"arabicName": "سالم الحمود",
"address": "Hamood El Hamood street, Riyadh, Saudi Arabia",
"birthDate": "1999-01-01",
"birthPlace": "Riyadh",
"contactPhone": "+964 770 123 4567",
"gender": "MALE",
"guardianName": "Hamood El Hamood",
"homePhone": "0643217123",
"nationalId": "30006161588373",
"nationality": "Saudi",
"religion": "MUSLIM",
"collegeId": "032a81cd-ac05-438b-841e-037e92cc5fe5",
"InstitutePreviousQualification": "IDK",
"PreviousQualification": "IDK",
"TotalPreviousQualification": "IDK",
"collegeCode": "32",
"directorate": "Ismailia",
"enrollmentYear": "2023",
"schoolMarks": "294.5",
"schoolSeatId": "743751"
}
** nationalId is the only mandatory field, the rest are optional