mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Merge branch '3.1' into api-issue-06-8s9swu
This commit is contained in:
46 files changed
+2104
-220
No files matched your search
@@ -196,14 +196,18 @@ async def get_images(
|
||||
images_repo: ImagesRepository = Depends(get_repository(ImagesRepository)),
|
||||
image_type: Optional[schemas.ImageType] = None,
|
||||
availability: Optional[Literal["unknown", "available", "missing", "unavailable", "invalid"]] = None,
|
||||
name: Optional[str] = Query(None, description="Return only images whose filename exactly matches (case-sensitive)"),
|
||||
) -> List[models.Image]:
|
||||
"""
|
||||
Return all images.
|
||||
|
||||
Required privilege: Image.Audit
|
||||
|
||||
Query Parameters:
|
||||
- name: Exact, case-sensitive match on the image filename.
|
||||
"""
|
||||
|
||||
return await images_repo.get_images(image_type, availability)
|
||||
return await images_repo.get_images(image_type, availability, name)
|
||||
|
||||
|
||||
@router.post(
|
||||
|
||||
Reference in new issue
Block a user