Facedeck API v0
Routes:
http://facedeck-dev.tech.northwestern.edu
To access any of these routes you need to set the APIKEY header to your key. All netids are validated with the IdentityMapper api, and an invalid netid will throw a 500. There are not currently good error messages for this but they will be implemented.
1. Index: get "/api/groups"
Request
Empty!
Response
Returns an array of json objects representing groups like this:
2. New: post "/apis/groups"
Request
Create (or replaces) a group. Here is an example valid post body to create/replace a group:
Response
The api will return your group + an id.
3. Destroy: post "/api/groups/destroy"
Request
This destroys a group, a valid post body looks like this:
or like this:
Response
The api will return the following for a valid request
That's it!