Skip to content

Commit

Permalink
Merge pull request #127 from yjinjo/master
Browse files Browse the repository at this point in the history
Added FastAPI Body to handle request body, causing an error.
  • Loading branch information
yjinjo authored Jun 19, 2024
2 parents f9e0fe0 + eda8acc commit 459d7e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/spaceone/monitoring/interface/rest/v1/event.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from fastapi import Request, Body
from fastapi import Request
from fastapi_utils.inferring_router import InferringRouter
from fastapi_utils.cbv import cbv
from spaceone.core.fastapi.api import BaseAPI
Expand All @@ -13,9 +13,7 @@
@cbv(router)
class Event(BaseAPI):
@router.post("/webhook/{webhook_id}/{access_key}/events")
async def create_event(
self, access_key: str, webhook_id: str, request: Request, data: dict = Body()
):
async def create_event(self, access_key: str, webhook_id: str, request: Request):
params, metadata = await self.parse_request(request)

event_service: EventService = self.locator.get_service("EventService")
Expand Down

0 comments on commit 459d7e2

Please sign in to comment.