aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/constants.py (unfollow)
Commit message (Collapse)AuthorLines
2018-02-15Move API validation decorator to its own file #yxdkGravatar Gareth Coles-43/+49
2018-02-14Fix odd typing errorGravatar Gareth Coles-1/+1
2018-02-14Fix odd typing errorGravatar Gareth Coles-1/+1
2018-02-14Database API Improvements #1qcra (#13)Gravatar Gareth Coles-45/+603
* 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)
2018-02-14[API] You need to return the value of `self.error()`Gravatar Gareth Coles-3/+3
2018-02-13SnekchekGravatar JoeBanks13-1/+1
2018-02-13@APIView.valid_api_key decoratorGravatar JoeBanks13-2/+17
2018-02-13RethinkDB API Views #yqhgGravatar lmn-56/+176
* 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
2018-02-13Websocket echo testGravatar Gareth Coles-0/+68
2018-02-12fix typoGravatar Christopher Baklid-1/+1
2018-02-12adds gevent-websockets as requirement (#9)Gravatar Christopher Baklid-0/+1
2018-02-12Add gevent requirementGravatar Gareth Coles-0/+1