akello icon indicating copy to clipboard operation
akello copied to clipboard

Registry User API Endpoint

Open vselvarajijay opened this issue 1 year ago • 0 comments

Registry User

  • Link a user to a registry
  • Set their role type (patient, provider)

Acceptance Criteria

  • API endpoint to link a user to the registry
  • API endpoint to set a users relationship to the registry
  • API endpoint to update/remove the relationship

API Routes

  • POST /v1/registry/{registry_id}/user
  • GET /v1/registry/{registry_id}/user/{user_id}
  • PUT /v1/registry/{registry_id}/user/{user_id}

Model

class RegistryUser(BaseModel):
    """
    Stores the relationship between a User from the User Account Microservice and a Registry
    Providers and Patients will be mapped in this object and classified by the role field
    """
    registry_id: str
    user_id: str
    role: str
    state: str
    flags: dict[str, bool] = {}
    created_at: Decimal
    is_enabled: bool

vselvarajijay avatar May 04 '24 00:05 vselvarajijay