Student Details API Documentation
Prepared by:
Md. Ebrahim Hossain
SQA Engineer at Achieve Test Prep (Newark, US)
Former SQA Engineer at ZS Solutions Ltd (BD)
Base URL
The primary endpoint for all API calls is:
https://thetestingworldapi.com
Student Endpoints
1. Get All Students
GET
/api/studentsDetails
Status Code: 200
Test Case Requirements
- Validate the HTTP Status Code is 200.
- Check the length/count of the array in the response body.
Response (200 OK)
HTTP/1.1 200 OK [ { "id": 526717, "first_name": "Anna", "middle_name": "Banana", "last_name": null, "date_of_birth": "12/23/1990" }, { "id": 526716, "first_name": "sample ", "middle_name": "sample ", "last_name": "sample ", "date_of_birth": "sample " }, { "id": 526715, "first_name": "Anna", "middle_name": "Banana last_name=Uzumaki", "last_name": null, "date_of_birth": "12/23/1990" } ]
2. Create Student
POST
/api/studentsDetails
Status Code: 201
Request Body (JSON Example)
{
"first_name": "MD. Ebrahim",
"middle_name": "Hossain",
"last_name": "Jewel",
"date_of_birth": "25-10-1998"
}
Test Case Requirements
- Validate the HTTP Status Code is 201 (Created).
Response (201 Created)
HTTP/1.1 201 Created { "id": 526718, "first_name": "MD. Ebrahim", "middle_name": "Hossain", "last_name": "Jewel", "date_of_birth": "25-10-1998" }
3. Get Specific Student
GET
/api/studentsDetails/{id}
Status Code: 200
Test Case Requirements
- Validate the HTTP Status Code is 200.
- Validate the value of the 'id' field.
- Validate the value of the 'first\_name' field.
- Validate the value of the 'middle\_name' field.
- Validate the value of the 'last\_name' field.
- Validate the value of the 'date\_of\_birth' field.
Response (200 OK)
HTTP/1.1 200 OK { "status": "true", "data": { "id": 526716, "first_name": "MD. Ebrahim", "middle_name": "Hossain", "last_name": "Jewel", "date_of_birth": "25-10-1998" } }
4. Create Technical Skills
POST
/api/technicalskills
Status Code: 200
Request Body (JSON Example)
{
"id": 1,
"language": [
"Bangla",
"English"
],
"yearexp": "2",
"lastused": "20-03-2025",
"st_id": 526716
}
Test Case Requirements
- Validate the HTTP Status Code is 200.
Response (200 OK)
HTTP/1.1 200 OK { "status": "true", "msg": "Add data success" }
5. Create Student Address
POST
/api/addresses
Status Code: 200
Request Body (JSON Example)
{
"Permanent_Address": {
"House_Number": "33",
"City": "Dhaka",
"State": "Dhaka",
"Country": "Bangladesh",
"PhoneNumber": [
{
"Std_Code": "1216",
"Home": "House-33",
"Mobile": "+8801886644261"
},
{
"Std_Code": "1216",
"Home": "House-33",
"Mobile": "+8801521332111"
}
]
},
"stId": 526716
}
Test Case Requirements
- Validate the HTTP Status Code is 200.
- Validate the value of the 'status' field ("true").
- Validate the value of the 'msg' field ("Add data success").
Response (200 OK)
HTTP/1.1 200 OK { "status": "true", "msg": "Add data success" }
6. Final Student Details (Full Profile)
GET
/api/FinalStudentDetails/{id}
Status Code: 200
Test Case Requirements
- Validate the HTTP Status Code is 200.
- Validate the 'language' field value in `TechnicalDetails`.
- Validate the 'yearexp' field value.
- Validate the 'House\_Number' field value in `Permanent_Address`.
- Validate the 'City' field value.
- Validate the 'Country' field value.
- Validate the 'Mobile' field value in `PhoneNumber` array.
- Validate the 'State' field value.
- Validate the 'Std\_Code' field value.
- Validate the 'Home' field value.
- Validate the 'Current\_Address' field value (which is expected to be null).
Response (200 OK)
HTTP/1.1 200 OK { "status": "true", "data": { "first_name": "MD. Ebrahim", "middle_name": "Hossain", "last_name": "Jewel", "date_of_birth": "25-10-1998", "TechnicalDetails": [ { "id": 5266, "language": [ "Bangla", "English" ], "yearexp": "2", "lastused": "20-03-2025", "st_id": "526716" } ], "Address": [ { "Permanent_Address": { "House_Number": "33", "City": "Dhaka", "State": "Dhaka", "Country": "Bangladesh", "PhoneNumber": [ { "Std_Code": "1216", "Home": "House-33", "Mobile": "+8801886644261" }, { "Std_Code": "1216", "Home": "House-33", "Mobile": "+8801521332111" } ] }, "Current_Address": null, "stId": "526716" } ] } }