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