Skip to content

Commit

Permalink
remove get method for expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
noctillion committed Dec 18, 2024
1 parent 0a45a5e commit d7b3cfd
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions transcriptomics_data_service/routers/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,45 +62,6 @@ async def get_expressions_handler(
return GeneExpressionResponse(expressions=response_data, pagination=pagination_meta)


@query_router.get(
"/expressions",
status_code=status.HTTP_200_OK,
response_model=GeneExpressionResponse,
)
async def get_expressions_all(
db: DatabaseDependency,
logger: LoggerDependency,
method: MethodEnum = Query(
MethodEnum.raw,
description="Data method to retrieve: 'raw', 'tpm', 'tmm', 'getmm'",
),
page: int = Query(
1,
ge=1,
description="Page number for pagination (must be greater than or equal to 1)",
),
page_size: int = Query(
100,
ge=1,
le=1000,
description="Number of records per page (between 1 and 1000)",
),
):
"""
Retrieve all gene expression data via GET request with pagination.
"""
params = QueryParameters(
genes=None,
experiments=None,
sample_ids=None,
method=method,
page=page,
page_size=page_size,
)

return await get_expressions_handler(params, db, logger)


@query_router.post(
"/expressions",
status_code=status.HTTP_200_OK,
Expand Down

0 comments on commit d7b3cfd

Please sign in to comment.