endpoints.therapists module

This module contains the therapists endpoint for retrieving therapists.

endpoints.therapists.get_therapists(_api_key: str = Depends(validate_api_key), db: Session = Depends(get_db), limit: int = Query(10), offset: int = Query(0), min_experience: int = Query(None), therapy_method: str = Query(None), postal_code: str = Query(None), cluster_short: str = Query(None))[source]

Retrieve a list of therapists with optional filtering.

Parameters:
  • api_key – API key for authentication (validated).

  • limit – Maximum number of results to return (default is 10).

  • offset – Number of results to skip for pagination (default is 0).

  • min_experience – Minimum years of experience required.

  • therapy_method – Filter by specific therapy method.

  • postal_code – Filter by postal code.

  • db – Database session dependency.

Returns:

List of therapists matching the criteria.

Return type:

List[Therapist]