feat(api): generate unique readable OpenAPI operationIds

This commit is contained in:
Mark Paronyan committed 2026-10-07 15:53:00 +03:00
1 parent 2fb7056cb9
commit 6ed9e44f00
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