smif.http_api.register module

Summary

Data:

register_api Register a MethodView as an endpoint with CRUD operations at a URL
register_api_endpoints Register API calls (using pluggable views)
register_error_handlers Handle expected errors
register_routes Register plain routing

Reference

smif.http_api.register.register_routes(app)[source]

Register plain routing

smif.http_api.register.register_api_endpoints(app)[source]

Register API calls (using pluggable views)

smif.http_api.register.register_error_handlers(app)[source]

Handle expected errors

smif.http_api.register.register_api(app, view, endpoint, url, key='id', key_type='int', action=None, action_type=None)[source]

Register a MethodView as an endpoint with CRUD operations at a URL