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.
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.