server Package

request_helper

tvb.interfaces.rest.server.request_helper.get_current_user()[source]
tvb.interfaces.rest.server.request_helper.set_current_user(user)[source]

rest_api

class tvb.interfaces.rest.server.rest_api.RestApi(app=None, version='1.0', title=None, description=None, terms_url=None, license=None, license_url=None, contact=None, contact_url=None, contact_email=None, authorizations=None, security=None, doc='/', default_id=<function default_id>, default='default', default_label='Default namespace', validate=None, tags=None, prefix='', ordered=False, default_mediatype='application/json', decorators=None, catch_all_404s=False, serve_challenge_on_401=False, format_checker=None, url_scheme=None, default_swagger_filename='swagger.json', **kwargs)[source]

Bases: Api

handle_error(e)[source]

Error handler for the API transforms a raised exception into a Flask response, with the appropriate HTTP status code and body.

Parameters:

e (Exception) – the raised Exception object

run

Subpackages