GET api/teststudents/{indexNo}

obtain student with index number specified

Request Information

URI Parameters

NameDescriptionTypeAdditional information
indexNo

string

Required

Body Parameters

None.

Response Information

Resource Description

StudentDto
NameDescriptionTypeAdditional information
IndexNo

string

None.

StudentName

string

None.

Dob

date

None.

Phone

string

None.

Email

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IndexNo": "sample string 1",
  "StudentName": "sample string 2",
  "Dob": "2025-06-25T14:41:38.5840223+00:00",
  "Phone": "sample string 4",
  "Email": "sample string 5"
}

application/xml, text/xml

Sample:
<StudentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SRMS.WebApi.Models">
  <Dob>2025-06-25T14:41:38.5840223+00:00</Dob>
  <Email>sample string 5</Email>
  <IndexNo>sample string 1</IndexNo>
  <Phone>sample string 4</Phone>
  <StudentName>sample string 2</StudentName>
</StudentDto>