aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/base_route.py (follow)
Commit message (Collapse)AuthorAgeLines
* Integrate websockets into the Flask webappGravatar Gareth Coles2018-02-17-52/+0
|
* API schema validation decorator #yzuf (#15)Gravatar Gareth Coles2018-02-16-2/+6
| | | | | | | | | | * API schema validation decorator * Remove stray comma * Remove unnecessary conditional * Only cast to list when needed to
* snekchekGravatar Gareth Coles2018-02-15-1/+2
|
* Fix up API key validation and database api locationGravatar Gareth Coles2018-02-15-1/+3
|
* Move API validation decorator to its own file #yxdkGravatar Gareth Coles2018-02-15-16/+1
|
* Database API Improvements #1qcra (#13)Gravatar Gareth Coles2018-02-14-3/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * A large set of changes, including: * A mixin for views that need the DB * Many changes to the database class in order to make things more fluid * Provide the route manager in view setup() methods * Pushing up the progress so far * snekchek * Full (undocumented) database implementation * snekchek * Don't rely on exceptions for table deletion * Add RethinkDB data to gitignore * Documentation for DB class * Make Flake8 ignore P102 What even is that? What does "docstring does contain unindexed parameters" mean? * Document the base_routes module * Cleanup RE latest reviews * snekchek (bah)
* SnekchekGravatar JoeBanks132018-02-13-1/+1
|
* @APIView.valid_api_key decoratorGravatar JoeBanks132018-02-13-2/+17
|
* RethinkDB API Views #yqhgGravatar lmn2018-02-13-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactoring the database implementation into a class of its own. * Refactoring the database implementation into a class of its own. * healthcheck should belong to the API. * dynamic subdomain loading, setting up basic handling for staff.pythondiscord.com, and started on a TagView for a bot tag feature. * Oops, forgot to fix some merges. * Some quality of life updates - default values for env variables that aren't secret, and starting to get through the tag view. * Refactoring the database implementation into a class of its own. * healthcheck should belong to the API. * dynamic subdomain loading, setting up basic handling for staff.pythondiscord.com, and started on a TagView for a bot tag feature. * Oops, forgot to fix some merges. * Some quality of life updates - default values for env variables that aren't secret, and starting to get through the tag view. * API validation added to the APIView class, TagView should be finished as well. * super important commit you guys * fixed a bug with the RethinkDB class where host and port attributes were accessed before being created * Fixed my editor now you guys * Fixing up some of the problems brought up in gdude's review * Handling GET requests with param indata and POST with JSON. Fixed error handling to use the constants and the baseclass self.error(). * Get API-key from headers, context manage the db assignment, and default env var values * Changed API-KEY header to X_API_Key. Added a default for secret key. it should no longer be necessary with environment variables to run this system locally. * Changing back the nav to have relative paths * Why am I like this
* Asana integration (#7)Gravatar Gareth Coles2018-02-11-2/+10
| | | | | | * Event dispatching and webhook sending * snekchek
* APIView should inherit RouteViewGravatar Gareth Coles2018-02-09-1/+1
|
* Guess who forgot to run snekchek!Gravatar Gareth Coles2018-02-09-1/+1
|
* Base API route and error codes enumGravatar Gareth Coles2018-02-09-1/+16
|
* Move from straight app registration to Blueprints (#6)Gravatar Gareth Coles2018-02-09-5/+5
|
* Merge remote-tracking branch 'origin/master'Gravatar Gareth Coles2018-02-08-7/+15
|\
| * Static files; basic templatesGravatar Gareth Coles2018-02-07-5/+7
| |
| * Template renderingGravatar Gareth Coles2018-02-06-3/+9
| |
* | PffftGravatar Gareth Coles2018-02-08-2/+0
|/
* Revert "Finally fix this garbage"Gravatar Gareth Coles2018-02-06-0/+29
| | | | This reverts commit 57abb43
* Finally fix this garbageGravatar martmists2018-02-05-29/+0
| | | | Signed-off-by: martmists <[email protected]>
* Fix hardcoded error code in error viewGravatar Gareth Coles2018-02-05-1/+1
|
* Revert "Major update"Gravatar Gareth Coles2018-02-05-0/+29
| | | | This reverts commit 80a1ab5
* Major updateGravatar martmists2018-02-05-29/+0
| | | | | | | | | | | | | | - Switch to Japronto - More linters - Rewrite route handling - Rewrite error handling - Rewrite static handling - Error when no `Index` propery is found - Probably some more stuff? idk Code needs testing; Maybe we could use pytest? Signed-off-by: martmists <[email protected]>
* Dynamic route loader; proper application structureGravatar Gareth Coles2018-02-05-0/+29
Also fixed flake8-imports getting the other wrong