Returns all available information for any majors stored in the database, for a specified school.
GET /majors/school/{school_id}
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | String | yes | Valid API Key |
| school_id | Integer | yes | The specified school id. For more information see School Codes below. |
Output Format
- json
GET /majors/school/{school_id}
| Field Name | Type | Description |
|---|
- | Array | An array containing all majors where their school code matches the school code parameter.
| School | Code |
|---|---|
| School of Business | 0 |
| School of Liberal Arts & Sciences | 1 |
| Frances Rich School of Fine & Performing Arts | 2 |
[
{
"id": 1,
"title": "Information Technology",
"school": 1
},
{
"id": 2,
"title": "Art History",
"school": 1
},
{
"id": 3,
"title": "Communication",
"school": 1
},
{
"id": 4,
"title": "Economics",
"school": 1
},
{
"id": 5,
"title": "English & American Literature",
"school": 1
},
{
"id": 6,
"title": "Environmental Studies",
"school": 1
},
{
"id": 10,
"title": "Sociology",
"school": 1
},
{
"id": 11,
"title": "Liberal Studies",
"school": 1
},
{
"id": 12,
"title": "History",
"school": 1
},
{
"id": 13,
"title": "English Literature with Linguistics",
"school": 1
}
]