aboutsummaryrefslogtreecommitdiff
path: root/modules/rest_api.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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'sGravatar jesopo2019-01-231-2/+6
| | | | comment) (rest_api.py)
* Switch to using a case insensitive dictionary for headers instead of doingGravatar jesopo2018-12-081-1/+1
| | | | .title() on each header key
* 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 comprehensionGravatar jesopo2018-12-061-1/+1
| | | | (rest_api.py)
* .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 nowGravatar jesopo2018-11-301-8/+0
| | | | that API calls are thrown straight on to the main thread
* Grab response from functions asked to be executed on the main thread and feedGravatar jesopo2018-11-271-2/+3
| | | | | 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
* 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 theGravatar jesopo2018-11-121-1/+2
| | | | database (dict of '{"name": , "permissions": }')
* Change API keys to be hex representations of UUID4s, change their value in theGravatar jesopo2018-11-121-7/+8
| | | | | | | 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)
* 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_responseGravatar jesopo2018-10-061-0/+1
| | | | outside of try/except in modules/rest_api.py
* 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