From 450a19a466ea3b45eacf378dbc7f25d27b9863a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sun, 3 Dec 2023 18:29:25 +0100 Subject: [PATCH] rename as_api v2 in editor to as_api --- src/c3nav/editor/newapi/endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c3nav/editor/newapi/endpoints.py b/src/c3nav/editor/newapi/endpoints.py index cad3c6ff..a81f307e 100644 --- a/src/c3nav/editor/newapi/endpoints.py +++ b/src/c3nav/editor/newapi/endpoints.py @@ -116,7 +116,7 @@ def resolve_editor_path_api(request, path): return resolved -@editor_api_router.get('/{path:path}', summary="access the editor UI programmatically", +@editor_api_router.get('/as_api/{path:path}', summary="access the editor UI programmatically", response={200: dict, **API404.dict(), **auth_permission_responses}, openapi_extra={"security": [{"APITokenAuth": ["editor_access"]}]}) @newapi_etag() # todo: correct? @@ -138,7 +138,7 @@ def view_as_api(request, path: str): return response -@editor_api_router.post('/{path:path}', summary="access the editor UI programmatically", +@editor_api_router.post('/as_api/{path:path}', summary="access the editor UI programmatically", response={200: dict, **API404.dict(), **auth_permission_responses}, openapi_extra={"security": [{"APITokenAuth": ["editor_access", "write"]}]}) @newapi_etag() # todo: correct?