fix paths in api

This commit is contained in:
2025-07-15 15:45:45 +02:00
parent 1cb9451c47
commit bd368822aa

View File

@@ -26,31 +26,8 @@ except KeyError as e:
app.state.config = config
@app.get("/hello")
async def say_hello(name: str):
"""
Returns a friendly greeting.
---
parameters:
- name: name
in: query
required: true
schema:
type: string
responses:
200:
description: Successful Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
"""
return JSONResponse(content={"message": f"Hello, {name}!"})
@app.post("/uploadMinimalSBOM/")
@app.post("/sbom-integrator/v1/upload-minimal-sbom/")
async def uploadMinimalSBOM(
file: UploadFile = File(...),
reimport: bool = Form(...)
@@ -81,7 +58,7 @@ async def uploadMinimalSBOM(
"message": "Upload successful!"
})
@app.post("/uploadSBOM/")
@app.post("/sbom-integrator/v1/upload-sbom/")
async def uploadSBOM(
file: UploadFile = File(...),
projectName: str = Form(...),