AdamVig / GoCoApi

API Server for the GoCoStudent app.
https://gocostudent.adamvig.com/api
GNU General Public License v3.0
0 stars 0 forks source link

Add missing endpoints #31

Closed AdamVig closed 8 years ago

AdamVig commented 8 years ago

See #5.

This is a total overhaul of the previous endpoint instantiation system to make it more easily expandable. The motivation for this change was adding endpoints to interact with user data in the database, which requires all four REST methods to be defined on a single endpoint. Most endpoints only have one method and the previous system had not way to override the endpoint creation logic.

The new system uses ES2015 classes, which allow for extending and overriding the base Endpoint class.

This pull also adds the /user/:name endpoint and a corresponding test.