def self.registered(app)
      app.get self.api_path, &get_workspace
      app.get self.api_path_with_id, &get_workspace
      app.post self.api_path, &add_workspace
      app.put self.api_path_with_id, &update_workspace