Skip to content
This repository was archived by the owner on Jun 21, 2019. It is now read-only.

Administrative Endpoint to Toggle Controller access #131

Open
YashoSharma opened this issue Jul 25, 2017 · 1 comment
Open

Administrative Endpoint to Toggle Controller access #131

YashoSharma opened this issue Jul 25, 2017 · 1 comment

Comments

@YashoSharma
Copy link
Member

YashoSharma commented Jul 25, 2017

It would be useful for admins to be able to enable/disable endpoints

  • Endpoints to manage access to the controller
  • DB table to store states of controllers (PK of controller name, and Bit for boolean)
  • Cache the states on startup, and expire them when the state is changed
  • If a state is not cached when accessed reread it from the db
  • Middleware to process requests/handle invalid requests
  • Use an EndpointNotAvailableError on failure
@nmagerko
Copy link
Member

Is this toggling access to a controller or just a feature? It sounds like we'd want to toggle access to specific features ('create registration', 'update registration') not a specific API endpoint's controller ('registration').

To that end, would it make more sense to have a separate error for this? Something like FeatureNotAvailable? The UnprocessableRequestError is usually thrown for requests that cannot be processed for some general reason if I remember correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants