aboutsummaryrefslogtreecommitdiff
path: root/modules/rest_api.py
Commit message (Expand)AuthorAgeFilesLines
* Switch to using a case insensitive dictionary for headers instead of doing•••.title() on each header key Gravatar jesopo2018-12-081-1/+1
* Check whether we actually have a httpd running when unloading rest_api.pyGravatar jesopo2018-12-081-1/+3
* .items() on self.headers, to correctly use it for a dict comprehension•••(rest_api.py) Gravatar jesopo2018-12-061-1/+1
* .title() all header keys (rest_api.py)Gravatar jesopo2018-12-061-1/+2
* rest_api.py's '_safe_handle' function isn't used and doesn't need to be used now•••that API calls are thrown straight on to the main thread Gravatar jesopo2018-11-301-8/+0
* Grab response from functions asked to be executed on the main thread and feed•••them back to the callers, allowing rest_api.py to take the main thread while it's waiting for the response to give back to the requesting client Gravatar jesopo2018-11-271-2/+3
* Prefix modules/rest_api.py logging with "[HTTP] "Gravatar jesopo2018-11-141-1/+1
* Log HTTP events through regular loggingGravatar jesopo2018-11-141-0/+3
* Typo in modules/rest_api.py, 'args_spit' -> 'args_split'Gravatar jesopo2018-11-121-1/+1
* Better denote variable-length "endpoint" arg in !apikey's usageGravatar jesopo2018-11-121-1/+1
* Typo in modules/rest_api.py, 'seting' -> 'setting'Gravatar jesopo2018-11-121-1/+1
* Typo on modules/rest_api.py, '= =' -> '='Gravatar jesopo2018-11-121-1/+1
* 'api-minify' -> 'rest-api-minify' and make it settable from !botsetGravatar jesopo2018-11-121-1/+4
* Change API key checking on-request to match what the values should be in the•••database (dict of '{"name": , "permissions": }') Gravatar jesopo2018-11-121-1/+2
* Change API keys to be hex representations of UUID4s, change their value in the•••database to be a dictionary ({"comment": , "permissions": }) and change the !apikey command to take a `comment` arg (to note what specific keys are intended for) and vararg `permissions` (a list of endpoints the API key is allowed to hit) Gravatar jesopo2018-11-121-7/+8
* API keys should have a value of `[]` when they're created, not `True`Gravatar jesopo2018-11-111-1/+1
* Add a way of appending a comment on an API key, to denote what it's for.Gravatar jesopo2018-11-111-0/+4
* typo in modules/rest_api.py; 'resonse' -> 'response'Gravatar jesopo2018-11-111-2/+2
* Add missing "," in modules/rest_api.pyGravatar jesopo2018-11-111-1/+1
* typo in modules/rest_api.py, 'permimssions' -> 'permissions'Gravatar jesopo2018-11-111-1/+1
* Add a way to minify REST API responses in modules/rest_api.pyGravatar jesopo2018-11-111-2/+6
* Add basic access controls to modules/rest_api.pyGravatar jesopo2018-11-101-4/+5
* Log errors caught when trying to execute API endpointsGravatar jesopo2018-11-061-1/+7
* Only count a `None` response from an API event hook to be a 404Gravatar jesopo2018-11-061-1/+1
* Pass headers through REST API callbacksGravatar jesopo2018-11-061-2/+2
* Pass context-wrapped timers to each module, add ModuleManager.BaseModule.on_loadGravatar jesopo2018-10-121-8/+6
* Typo in modules/github.py ('command' -> 'commit') and declare event_response•••outside of try/except in modules/rest_api.py Gravatar jesopo2018-10-061-0/+1
* Return 500 when an exception is thrown, never try to .encode NoneGravatar jesopo2018-10-061-5/+9
* Require modules/rest_api.py has tls cert/keyGravatar jesopo2018-10-051-1/+8
* POST shouldn't use body as 'params'Gravatar jesopo2018-10-051-5/+5
* Support POST through modules/rest_api.pyGravatar jesopo2018-10-051-33/+46
* Remove printsGravatar jesopo2018-10-051-1/+0
* Allow API endpoints to not request authenticationGravatar jesopo2018-10-041-15/+22
* Strip empty /path/arguments in modulse/rest_api.pyGravatar jesopo2018-10-041-1/+3
* Use URL path for args, not get paramsGravatar jesopo2018-10-041-1/+2
* Make sure bot.lock is released in do_GETGravatar jesopo2018-10-041-21/+23
* Timeout REST API requests after 10 secondsGravatar jesopo2018-10-041-0/+1
* Implement !botset/!botget in modules/set.pyGravatar jesopo2018-10-041-0/+3
* Implement api keys in modules/rest_api.pyGravatar jesopo2018-10-041-8/+24
* Add basics of (by-default disabled) REST APIGravatar jesopo2018-10-041-0/+51