all endpoints tested

This commit is contained in:
msramalho
2024-10-19 01:16:36 +01:00
parent 8e1152ab33
commit 17950ecff7
2 changed files with 47 additions and 1 deletions

View File

@@ -20,4 +20,4 @@ def archive_sheet(sheet:schemas.SubmitSheet, email = Depends(get_token_or_user_a
if not sheet.sheet_name and not sheet.sheet_id:
raise HTTPException(status_code=422, detail=f"sheet name or id is required")
task = create_sheet_task.delay(sheet.model_dump_json())
return JSONResponse({"id": task.id})
return JSONResponse({"id": task.id}, status_code=201)