Peter Mutwiri commited on
Commit ·
aab8f97
1
Parent(s): 409b44f
defined source-id
Browse files
app/routers/datasources.py
CHANGED
|
@@ -76,12 +76,17 @@ class JsonPayload(BaseModel):
|
|
| 76 |
|
| 77 |
@router.post("/json")
|
| 78 |
async def create_source_json(
|
|
|
|
| 79 |
payload: JsonPayload,
|
| 80 |
orgId: str = Query(...),
|
| 81 |
sourceId: str = Query(...),
|
| 82 |
type: str = Query(...),
|
| 83 |
_: str = Depends(verify_api_key),
|
| 84 |
):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
"""
|
| 86 |
Enterprise ingestion endpoint:
|
| 87 |
- Stores raw audit trail
|
|
|
|
| 76 |
|
| 77 |
@router.post("/json")
|
| 78 |
async def create_source_json(
|
| 79 |
+
|
| 80 |
payload: JsonPayload,
|
| 81 |
orgId: str = Query(...),
|
| 82 |
sourceId: str = Query(...),
|
| 83 |
type: str = Query(...),
|
| 84 |
_: str = Depends(verify_api_key),
|
| 85 |
):
|
| 86 |
+
|
| 87 |
+
org_id = orgId
|
| 88 |
+
source_id = sourceId
|
| 89 |
+
ds_type = type
|
| 90 |
"""
|
| 91 |
Enterprise ingestion endpoint:
|
| 92 |
- Stores raw audit trail
|