class_docstr: Handle requests for the experiments/ REST endpoint
docstr: Handle GET requests for experiments/:name where `name` is
  the user-defined name of the experiment
docstr_tok: ["Handle","GET","requests","for","experiments\/",":","name","where","`","name","`","is","the","user-defined","name","of","the","experiment"]
code: def on_get_experiment(self, req: Request, resp: Response, name: str):
      """
      Handle GET requests for experiments/:name where `name` is
      the user-defined name of the experiment
      """
      verify_query_parameters(req.params, ["version"])
      version = req.get_param_as_int("version")
      experiment = retrieve_experiment(self.storage, name, version)
  
      status = _retrieve_status(experiment)
      algorithm = _retrieve_algorithm(experiment)
      best_trial = _retrieve_best_trial(experiment)
  
      response = build_experiment_response(
          experiment, status, algorithm, best_trial
      )
      resp.text = json.dumps(response)
  
file_path: orion/src/orion/serving/experiments_resource.py
imports: import json
  from typing import Optional
  from falcon import Request, Response
  from orion.core.worker.experiment import Experiment
  from orion.core.worker.trial import Trial
  from orion.serving.parameters import retrieve_experiment, verify_query_parameters
  from orion.serving.responses import build_experiment_response, build_experiments_response
label_desc: Use image node_id 3 for calling the ExperimentsResource obj's underlying member method code with example usage: obj.on_get_experiment(req, resp, name) without return types