Skip to content

Commit

Permalink
fix(podorc): remove response_class due to errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Mar 22, 2024
1 parent 3279e73 commit 2d89f9b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions gateway/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def route(
form_params: list[str] | None = None,
body_params: list[str] | None = None,
response_model: any = None, # TODO: Make specific for pydantic models
response_class: any = None, # TODO: Make specific for pydantic response classes
tags: list[str] = None,
dependencies: Sequence[params.Depends] | None = None,
summary: str | None = None,
Expand Down Expand Up @@ -138,7 +137,6 @@ def route(
path,
status_code=status_code,
response_model=response_model,
response_class=response_class,
tags=tags,
dependencies=dependencies,
summary=summary,
Expand Down
7 changes: 0 additions & 7 deletions gateway/routers/podorc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import Annotated

from fastapi import APIRouter, Path, Security
from fastapi.responses import JSONResponse
from starlette import status
from starlette.requests import Request
from starlette.responses import Response
Expand All @@ -25,7 +24,6 @@
path="/{analysis_id}",
status_code=status.HTTP_200_OK,
service_url=gateway_settings.PODORC_SERVICE_URL,
response_class=JSONResponse,
)
async def create_analysis(
request: Request,
Expand All @@ -41,7 +39,6 @@ async def create_analysis(
path="/{analysis_id}/logs",
status_code=status.HTTP_200_OK,
service_url=gateway_settings.PODORC_SERVICE_URL,
response_class=JSONResponse,
)
async def get_analysis_logs(
request: Request,
Expand All @@ -57,7 +54,6 @@ async def get_analysis_logs(
path="/{analysis_id}/status",
status_code=status.HTTP_200_OK,
service_url=gateway_settings.PODORC_SERVICE_URL,
response_class=JSONResponse,
)
async def get_analysis_status(
request: Request,
Expand All @@ -73,7 +69,6 @@ async def get_analysis_status(
path="/{analysis_id}/pods",
status_code=status.HTTP_200_OK,
service_url=gateway_settings.PODORC_SERVICE_URL,
response_class=JSONResponse,
)
async def get_analysis_pods(
request: Request,
Expand All @@ -89,7 +84,6 @@ async def get_analysis_pods(
path="/{analysis_id}/stop",
status_code=status.HTTP_200_OK,
service_url=gateway_settings.PODORC_SERVICE_URL,
response_class=JSONResponse,
)
async def stop_analysis(
request: Request,
Expand All @@ -105,7 +99,6 @@ async def stop_analysis(
path="/{analysis_id}/delete",
status_code=status.HTTP_200_OK,
service_url=gateway_settings.PODORC_SERVICE_URL,
response_class=JSONResponse,
)
async def delete_analysis(
request: Request,
Expand Down

0 comments on commit 2d89f9b

Please sign in to comment.