Updated endpoints and tests for users, rbac, health, file, and auth
This commit is contained in:
1 parent
207b8eea5e
commit
d379fbd621
26 files changed
+582
-28
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,25 @@
|
||||
"""Endpoints for file upload."""
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
from app.core.common import Message
|
||||
|
||||
router = APIRouter(prefix="/files", tags=["files"])
|
||||
|
||||
|
||||
@router.post(path="/upload")
|
||||
def upload_file() -> Message:
|
||||
"""Upload file endpoint."""
|
||||
return {"status": "healthy"}
|
||||
|
||||
|
||||
@router.post(path="/{file_id}/download")
|
||||
def download_file(file_id: str) -> Message:
|
||||
"""Download file endpoint."""
|
||||
return {"status": file_id}
|
||||
|
||||
|
||||
@router.delete(path="/{file_id}")
|
||||
def delete_file(file_id: str) -> Message:
|
||||
"""Delete file endpoint."""
|
||||
return {"status": file_id}
|
||||
Reference in new issue
Block a user