mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +02:00
feat(api): generate unique readable OpenAPI operationIds
This commit is contained in:
5 files changed
+149
-4
No files matched your search
@@ -21,6 +21,7 @@ from fastapi import Depends, FastAPI, Request
|
||||
from fastapi.responses import JSONResponse
|
||||
from starlette.exceptions import HTTPException as StarletteHTTPException
|
||||
|
||||
from gns3server.api.operation_ids import generate_operation_id
|
||||
from gns3server.compute.compute_error import (
|
||||
ComputeError,
|
||||
ComputeForbiddenError,
|
||||
@@ -61,6 +62,7 @@ compute_api = FastAPI(
|
||||
title="GNS3 compute API",
|
||||
description="This page describes the private compute API for GNS3. PLEASE DO NOT USE DIRECTLY!",
|
||||
version="3.0.0",
|
||||
generate_unique_id_function=generate_operation_id,
|
||||
)
|
||||
|
||||
compute_api.state.controller_host = None
|
||||
|
||||
Reference in new issue
Block a user