// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation
import Get
import URLQueryEncoder

extension Paths.Experiment {
    public func key(_ key: String) -> WithKey {
        WithKey(path: "\(path)/\(key)")
    }

    public struct WithKey {
        /// Path: `/api/experiment/{key}`
        public let path: String

        /// Get Experiment
        ///
        /// Get experiment data for a given key.
        /// 
        /// Args:
        ///     request (AuthedHttpRequest): The authenticated HTTP request.
        ///     key (str): The experiment key.
        /// 
        /// Returns:
        ///     ExperimentSchema: The experiment data schema.
        /// 
        /// Raises:
        ///     HttpResponseForbidden: If the user is not authenticated.
        ///     HttpError: If the experiment is not found.
        public var get: Request<GenAPI.ExperimentSchema> {
            Request(path: path, method: "GET", id: "studio_api_bots_experiments_api_get_experiment")
        }
    }
}
