Get Variant By Env
GET/apps/get_variant_by_env
Retrieve the app variant based on the provided app_id and environment.
Args: app_id (str): The ID of the app to retrieve the variant for. environment (str): The environment of the app variant to retrieve.
Raises: HTTPException: If the app variant is not found (status_code=500), or if a ValueError is raised (status_code=400), or if any other exception is raised (status_code=500).
Returns: AppVariantResponse: The retrieved app variant.
Request
Responses
- 200
- 422
Successful Response
Validation Error