

def on_get(self, req, resp, session_id):
    user_id = (req.get_header('X-User-ID') or '')
    obj = self.db.get_session(user_id=user_id, session_id=session_id)
    if obj:
        resp.body = obj
    else:
        resp.status = falcon.HTTP_404

dataset/ETHPy150Open openstack/freezer-api/freezer_api/api/v1/sessions.py SessionsResource.on_get/original