precommit fixes
Taylor committed
Mar 28, 2024 at 17:09 UTC
2241878821dfd1bd0b678bfb405941a93b6f0172
4 files changed
+3
-7
backend/app/connectors/shuffle/routes/integrations.py
+1
-1
@@ -1,5 +1,4 @@
1
from fastapi import APIRouter
2
-from fastapi import HTTPException
2
from fastapi import Security
3
from loguru import logger
4
@@ -9,6 +8,7 @@ from app.connectors.shuffle.services.integrations import execute_integration
8
9
shuffle_integrations_router = APIRouter()
10
11
+
12
@shuffle_integrations_router.post(
13
"/execute",
14
description="Execute a Shuffle Integration.",
backend/app/connectors/shuffle/schema/integrations.py
+1
@@ -6,6 +6,7 @@ from typing import Optional
6
from pydantic import BaseModel
7
from pydantic import Field
8
9
+
10
class IntegrationRequest(BaseModel):
11
app_name: str = Field(..., description="The name of the application", example="PagerDuty")
12
category: str = Field(..., description="The category of the application", example="cases")
backend/app/connectors/shuffle/services/integrations.py
-5
@@ -1,11 +1,6 @@
1
-import asyncio
2
-from typing import List
3
-
4
-from fastapi import HTTPException
1
from loguru import logger
2
3
from app.connectors.shuffle.schema.integrations import IntegrationRequest
8
-from app.connectors.shuffle.utils.universal import send_get_request
4
from app.connectors.shuffle.utils.universal import send_post_request
5
6
backend/app/routers/shuffle.py
+1
-1
@@ -1,7 +1,7 @@
1
from fastapi import APIRouter
2
3
-from app.connectors.shuffle.routes.workflows import shuffle_workflows_router
3
from app.connectors.shuffle.routes.integrations import shuffle_integrations_router
4
+from app.connectors.shuffle.routes.workflows import shuffle_workflows_router
5
6
# Instantiate the APIRouter
7
router = APIRouter()