-
Notifications
You must be signed in to change notification settings - Fork 1
Admin UploadStudentPhoto
Vaishakh GK edited this page Apr 26, 2023
·
3 revisions
Route for uploading student photo.
URL : /api/admin/upload-student-photo?studentId=<studentId>
Method : POST
Auth Required : YES
Data constraints
The file must be of type image/jpg.
Data example
A binary file containing the image data.
Query Params
The studentId should be a string and represents the unique identifier of the student.
Query example
http://localhost:9000/api/admin/upload-student-photo?studentId=1234
Code : 200 OK
Content example
"Successfully added"Code : 401 Unauthorized
Content :
"Not Logged In"Code : 500 Internal Server Error
Content :
"Request failed"