From a5fd5e10f5c941e7329fdbc7c101f080f2dbb2fe Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Fri, 8 Mar 2024 13:51:06 -0500 Subject: [PATCH] Enable endpoints in App Engine config --- app.yaml | 7 +++---- openapi.yaml | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app.yaml b/app.yaml index 8afbc60..09957b4 100644 --- a/app.yaml +++ b/app.yaml @@ -6,10 +6,9 @@ runtime_config: operating_system: "ubuntu22" runtime_version: "1.21" -# TODO(soltesz): enable endpoints configuration. -#endpoints_api_service: -# name: locate-dot-{{PROJECT}}.appspot.com -# rollout_strategy: managed +endpoints_api_service: + name: autojoin-dot-{{PROJECT_ID}}.appspot.com + rollout_strategy: managed resources: cpu: 2 diff --git a/openapi.yaml b/openapi.yaml index 83b1ac7..4cb4725 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -64,7 +64,7 @@ paths: ################################################################################ # Requires authorization with an API key. "/autojoin/v0/node/register": - get: + post: description: |- Register a service with M-Lab. @@ -104,7 +104,7 @@ paths: '200': description: Registration was successful. security: - - api_key: [] + - api_key: [] tags: - public