configurations

Fetch code count information for a configuration.

Args: configuration_id (UUID): ID of the configuration to update user (DbUser): The logged-in user db (AsyncDatabaseConnection): Database connection

Raises: HTTPException: 404 if configuration can't be found HTTPException: 500 if code count metadata can't be fetched

Returns: CodeCountsResponse: Object containing code count info

get/api/v1/configurations/{configuration_id}/code-counts

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

configuration_id, string uuid required

Response

Successful Response

CodeCountsResponse required

Code count information to return to the client.

Field-identical to DbCodeResultCountMetadata now that both follow <thing>_count. The mapping below was already a pure rename; collapsing the two models is an E1 question (a db shape reaching the browser), not a naming one.

code_count, integer required
code_set_count, integer required
excluded_code_count, integer required
custom_code_count, integer required
primary_condition_rctc_count, integer required

Changes

    • breaking

      removed the required property total_code_count from the response with the status

    • breaking

      removed the required property total_code_sets_count from the response with the status

    • breaking

      removed the required property total_custom_codes_count from the response with the status

    5 more changes in this revision