'Glances API RESTFul implementation.
Return the JSON representation of all the plugins views
HTTP/200 if OK
HTTP/400 if plugin is not found
HTTP/404 if others error'

def _api_all_views(self):

    response.content_type = 'application/json'
    try:
        limits = json.dumps(self.stats.getAllViewsAsDict())
    except Exception as e:
        abort(404, ('Cannot    get    views    (%s)' % str(e)))
    return limits
