From b09d3edd9a132bb1c97e80afaeae9211794ef593 Mon Sep 17 00:00:00 2001 From: Emmanuel Alejandro Parada Licea Date: Tue, 24 Dec 2024 11:54:29 -0600 Subject: [PATCH 1/2] chore(endpoints): add regions to openapi.yaml --- endpoints/getting-started/openapi.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/endpoints/getting-started/openapi.yaml b/endpoints/getting-started/openapi.yaml index 2f4c7c7b2f5f..2137ba2ed915 100644 --- a/endpoints/getting-started/openapi.yaml +++ b/endpoints/getting-started/openapi.yaml @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +# [START endpoints_swagger_yaml_python] # [START swagger] swagger: "2.0" info: @@ -20,6 +21,7 @@ info: version: "1.0.0" host: "echo-api.endpoints.YOUR-PROJECT-ID.cloud.goog" # [END swagger] +# [END endpoints_swagger_yaml_python] consumes: - "application/json" produces: @@ -103,6 +105,7 @@ definitions: type: "string" email: type: "string" +# [START endpoints_security_definitions_yaml_python] # [START securityDef] securityDefinitions: # This section configures basic authentication with an API key. @@ -111,6 +114,7 @@ securityDefinitions: name: "key" in: "query" # [END securityDef] +# [END endpoints_security_definitions_yaml_python] # This section configures authentication using Google API Service Accounts # to sign a json web token. This is mostly used for server-to-server # communication. From 7a469dda700e56cac0c722e7e905376d82216a1d Mon Sep 17 00:00:00 2001 From: Emmanuel Alejandro Parada Licea Date: Tue, 24 Dec 2024 11:56:33 -0600 Subject: [PATCH 2/2] chore(endpoints): remove region to openapi-appengine.yaml --- endpoints/getting-started/openapi.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/endpoints/getting-started/openapi.yaml b/endpoints/getting-started/openapi.yaml index 2137ba2ed915..50620e671a28 100644 --- a/endpoints/getting-started/openapi.yaml +++ b/endpoints/getting-started/openapi.yaml @@ -166,7 +166,6 @@ securityDefinitions: # Your OAuth2 client's Client ID must be added here. You can add multiple client IDs to accept tokens form multiple clients. x-google-audiences: "YOUR-CLIENT-ID" # This section configures authentication using Firebase Auth. - # [START firebaseAuth] firebase: authorizationUrl: "" flow: "implicit" @@ -174,4 +173,3 @@ securityDefinitions: x-google-issuer: "https://securetoken.google.com/YOUR-PROJECT-ID" x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/securetoken@system.gserviceaccount.com" x-google-audiences: "YOUR-PROJECT-ID" - # [END firebaseAuth]