User Routes
GET
/api/user
Gets a user object based on partial or full name/jhed query (case insensitive) and/or affiliation (refer to affiliation type).
Name | Type | Description | |
---|---|---|---|
Query | username | String | partial or full user name or JHED |
affiliation | String | affiliation of user | |
Output | modified_user[] | Array of users without the sensitive plan_ids field. People with this route should not have access to a user's sensitive information. |
Sample Output
[
{
"_id": "freshmanDev",
"name": "Freshman Dev",
"email": "fakeremail@gmail.com",
"affiliation": "STUDENT",
"school": "Whiting School of Engineering",
"grade": "AE UG Freshman"
},
{
"_id": "FreshmanDev",
"name": "FreshmanDev",
"email": "FreshmanDev@fakeemail.com",
"affiliation": "STAFF",
"school": "jooby hooby",
"grade": "AE UG Freshman"
}
]