aboutsummaryrefslogtreecommitdiff
path: root/modules/rest_api.py
Commit message (Expand)AuthorAgeFilesLines
* Add 'api-port' setting to bot.conf and use it in rest_api.pyGravatar jesopo2019-03-131-1/+2
* move `code` in to the string format arg for log functionsGravatar jesopo2019-03-131-1/+1
* Show returned status code when _handle finishesGravatar jesopo2019-03-131-2/+2
* Remove default logging, show request path in our own _handle loggingGravatar jesopo2019-03-111-4/+5
* Show ip and port as "ip:port" in _handle loggingGravatar jesopo2019-03-111-4/+4
* DEBUG log when REST API _handle starts and finishesGravatar jesopo2019-03-111-0/+5
* Change HTTP request logging from INFO to DEBUGGravatar jesopo2019-02-281-1/+1
* Pass `key` through to _get_settings (rest_api.py)Gravatar jesopo2019-02-191-3/+2
* Remove copy-pasted ":" (rest_api.py)Gravatar jesopo2019-02-191-1/+1
* Do database-related work on UI thread (rest_api.py)Gravatar jesopo2019-02-191-2/+8
* Don't require client cert validation (rest_api.py)Gravatar jesopo2019-02-101-1/+1
* Typo, 'wrap_scket' -> 'ssl_wrap' (rest_api.py)Gravatar jesopo2019-02-101-1/+1
* Use newly abstracted away ssl_wrap (rest_api.py)Gravatar jesopo2019-02-101-3/+5
* need to `.items()` a dict to tuple-iterate it (rest_api.py)Gravatar jesopo2019-02-081-1/+1
* Abstract away sending response to REST API request (rest_api.py)Gravatar jesopo2019-02-081-4/+15
* Return `path` from `_path_data()` (rest_api.py)Gravatar jesopo2019-02-081-2/+2
* Typo, 'utils.parse' -> 'urllib.parse' (rest_api.py)Gravatar jesopo2019-02-081-1/+1
* Remove now not used params on _request() (rest_api.py)Gravatar jesopo2019-02-081-1/+1
* Simplify/refactor REST API request parsing code (rest_api.py)Gravatar jesopo2019-02-081-13/+20
* `apikey` command should have a minimum argument restriction (rest_api.py)Gravatar jesopo2019-02-011-1/+1
* I totally forgot that we don't need flask. at all.Gravatar jesopo2019-01-241-1/+0
* Move logging API key from INFO to DEBUG (rest_api.py)Gravatar jesopo2019-01-231-1/+1
* Logging shouldn't use `%` string formatting (rest_api.py)Gravatar jesopo2019-01-231-2/+2
* INFO log when we get a HTTP request with an API key (including the key's•••comment) (rest_api.py) Gravatar jesopo2019-01-231-2/+6
* 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