Commit Graph

6 Commits

Author SHA1 Message Date
gcarq
4aab55d27b api_server: fix flake8 warnings and implement missing methods 2018-06-23 09:27:28 +02:00
gcarq
ada87ba3a0 convert start, stop and reload_conf to return a dict 2018-06-22 03:32:45 +02:00
gcarq
556d507317 move endpoint definitions to class scope 2018-06-22 02:56:10 +02:00
gcarq
814894da7b fix flake8 warnings 2018-06-22 02:55:27 +02:00
creslinux
05226f6def Moved from decorators to app.add_url_rule
This has the benefit of creating a label which may be helpful if later
refactoring.

This change misses the main thrust of requests from both Gcarq and Shusso to
better layout the code

Im running into a challenge with 'self' not being available, or able to be
passed in either to decorators or view_func

This may simply be how I've instantiated an RPC in the wuperwrap or im within a thread
 - my very limited exposure to programming is at play! After moving code around
 lots of ways to no success and google not being helpful im committing for further feeback
2018-06-15 09:14:17 +00:00
creslinux
40db83c24c Added json validation of formats to check IPv4
refactored files and calls to be api_server
worked down satisfying review comments of last commit
2018-06-14 20:19:15 +00:00