mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 22:41:12 +02:00
feat: add response models for endpoints returning untyped objects
This commit is contained in:
24 files changed
+1192
-53
No files matched your search
@@ -161,7 +161,12 @@ async def update_iou_license(iou_license: schemas.IOULicense) -> schemas.IOULice
|
||||
return current_iou_license
|
||||
|
||||
|
||||
@router.get("/statistics", dependencies=[Depends(get_current_active_user)])
|
||||
@router.get(
|
||||
"/statistics",
|
||||
response_model=schemas.ServerStatistics,
|
||||
response_model_exclude_unset=True,
|
||||
dependencies=[Depends(get_current_active_user)],
|
||||
)
|
||||
async def statistics() -> dict:
|
||||
"""
|
||||
Return server statistics including compute resources, projects, and nodes.
|
||||
|
||||
Reference in new issue
Block a user