Objects and arrays together

4. Student Directory

Twelve fictional student records with programs and clubs.

Endpoint

GET https://api.mydcts.org/students

Authentication: None.

Query parameters

ParameterTypeDescription
qstringOptional. Case-insensitive partial name match; maximum 100 UTF-8 bytes. Omitted or empty returns all records. No matches returns an empty array.
delayintegerOptional. Response delay in milliseconds, 0–2000. Default: 0.

Response

application/json. A JSON array of 12 records before filtering.

FieldTypeDescription
namestringFictional student name
gradenumberGrade level, 9 through 12
programobjectProgram details
program.namestringProgram name
program.roomstringRoom number
clubsarray of stringsClub names; may be empty

Status codes

200 Success · 400 Invalid parameter · 405 Method not allowed

Request behavior and error reference