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
| Parameter | Type | Description |
|---|---|---|
q | string | Optional. Case-insensitive partial name match; maximum 100 UTF-8 bytes. Omitted or empty returns all records. No matches returns an empty array. |
delay | integer | Optional. Response delay in milliseconds, 0–2000. Default: 0. |
Response
application/json. A JSON array of 12 records before filtering.
| Field | Type | Description |
|---|---|---|
name | string | Fictional student name |
grade | number | Grade level, 9 through 12 |
program | object | Program details |
program.name | string | Program name |
program.room | string | Room number |
clubs | array of strings | Club names; may be empty |
Status codes
200 Success · 400 Invalid parameter · 405 Method not allowed