how do you use this site?
the url to use is http://uniatcu.herokuapp.com/
also, i made the homepage redirect here. be sure to make requests to the right paths
it's RESTful, so just make a GET request to it
API
Get info about a particular uni
path: /info
params: uni
e.g. uniatcu.herokuapp.com/info?uni=zjn2101
that's zach's uni. he's super cool.
response:
{
"data": {
"department": "computer science",
"email": "zjn2101@columbia.edu",
"home addr": "514 special interest community",
"name": "Zachary James Newman",
"title": "student, columbia college",
"uni": "zjn2101"
}
}
See if a uni exists or not
path: /exists
params: uni
e.g. uniatcu.herokuapp.com/exists?uni=zjn2101
response:
{
"exists" : "true"
}
Errors
sometimes you get an error. here's some info and how to help.
e.g.
{
"error": "length is too short"
}
cheat sheet
"please enter uni"
- you didn't enter the param "uni" properly
"length is too short"
- it must be at least 5 characters
"person not found"
- he's not in the database. you lose.