diff --git a/backend/app/connectors/shuffle/routes/integrations.py b/backend/app/connectors/shuffle/routes/integrations.py index 15339da5..b5090af1 100644 --- a/backend/app/connectors/shuffle/routes/integrations.py +++ b/backend/app/connectors/shuffle/routes/integrations.py @@ -1,5 +1,4 @@ from fastapi import APIRouter -from fastapi import HTTPException from fastapi import Security from loguru import logger @@ -9,6 +8,7 @@ shuffle_integrations_router = APIRouter() + @shuffle_integrations_router.post( "/execute", description="Execute a Shuffle Integration.", diff --git a/backend/app/connectors/shuffle/schema/integrations.py b/backend/app/connectors/shuffle/schema/integrations.py index 506d51a2..68f6fb5c 100644 --- a/backend/app/connectors/shuffle/schema/integrations.py +++ b/backend/app/connectors/shuffle/schema/integrations.py @@ -6,6 +6,7 @@ from pydantic import BaseModel from pydantic import Field + class IntegrationRequest(BaseModel): app_name: str = Field(..., description="The name of the application", example="PagerDuty") category: str = Field(..., description="The category of the application", example="cases") diff --git a/backend/app/connectors/shuffle/services/integrations.py b/backend/app/connectors/shuffle/services/integrations.py index 3056dcf0..f4840753 100644 --- a/backend/app/connectors/shuffle/services/integrations.py +++ b/backend/app/connectors/shuffle/services/integrations.py @@ -1,11 +1,6 @@ -import asyncio -from typing import List - -from fastapi import HTTPException from loguru import logger from app.connectors.shuffle.schema.integrations import IntegrationRequest -from app.connectors.shuffle.utils.universal import send_get_request from app.connectors.shuffle.utils.universal import send_post_request diff --git a/backend/app/routers/shuffle.py b/backend/app/routers/shuffle.py index 575230e2..89ae3f5a 100644 --- a/backend/app/routers/shuffle.py +++ b/backend/app/routers/shuffle.py @@ -1,7 +1,7 @@ from fastapi import APIRouter -from app.connectors.shuffle.routes.workflows import shuffle_workflows_router from app.connectors.shuffle.routes.integrations import shuffle_integrations_router +from app.connectors.shuffle.routes.workflows import shuffle_workflows_router # Instantiate the APIRouter router = APIRouter()