From 4bba9d0cdf8361e5529281a98d14bc4bb0ceb669 Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Sat, 19 May 2018 20:13:51 +0200 Subject: Snake cog (#71) * Tables that are initialized with JSON files in the table_init folder will now sync properly if the JSON file is changed after initialization. Any lines that are either added or removed will be updated whenever site is rebooted. * Initial API endpoint for snake_quiz * reverting database.py * I WILL KILL YOU * Added the snake_fact API endpoint * Moving snake tables to the new migrations system * Set up initial data for all new tables, added table objects, wrote endpoints, and wrote tests for the new endpoints. * Removing the snake_movies endpoint. That idea didn't pan out. * Added an endpoint for getting special snake cases * broken json * Fixing the initial data slightly, better picture of bob. * Changing JSON indentation to be 4 spaces consistently in all initial_data, to address Aperture's review. Also changing all the endpoints to have correct namespacing, addressing gdude's review. * Fixing tests to point to new API endpoints --- pysite/views/api/bot/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pysite/views/api/bot/user.py') diff --git a/pysite/views/api/bot/user.py b/pysite/views/api/bot/user.py index 58963682..12f5a2c7 100644 --- a/pysite/views/api/bot/user.py +++ b/pysite/views/api/bot/user.py @@ -28,8 +28,8 @@ DELETE_SCHEMA = Schema([ class UserView(APIView, DBMixin): - path = "/user" - name = "api.bot.user" + path = "/bot/users" + name = "bot.users" table_name = "users" oauth_table_name = "oauth_data" -- cgit v1.2.3