endpoints.therapy_types module¶
This module contains the therapy_types endpoint for retrieving therapy types.
- endpoints.therapy_types.get_therapy_types(_api_key: str = Depends(validate_api_key), db: Session = Depends(get_db), limit: int = Query(10), offset: int = Query(0), cluster_short: str = Query(None))[source]¶
Retrieve a list of therapy types with optional filtering.
- Parameters:
api_key – API key for authentication (validated).
db – Database session dependency.
limit – Maximum number of results to return (default is 10).
offset – Number of results to skip for pagination (default is 0).
cluster_short – Filter by therapy cluster short code.
- Returns:
List of therapy types matching the criteria.
- Return type:
List[TherapyType]