# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. swagger: '2.0' info: title: API Example description: Sample API with a Cloud Run backend version: 1.0.0 schemes: - https produces: - application/json x-google-backend: address: ${BACKEND_SERVICE_NAME} paths: /: get: summary: Responds with the request operationId: get_hello_world responses: '200': description: A successful response schema: type: string /remote: get: summary: Calls a remote service (GET /anything of a HTTPBin instance) operationId: get_remote_hello_world responses: '200': description: A successful response schema: type: string security: - auth0: [] securityDefinitions: auth0: authorizationUrl: "${OAUTH_AUTHORIZATION_URL}" flow: "implicit" type: "oauth2" x-google-issuer: "${OAUTH_ISSUER}" x-google-jwks_uri: "${OAUTH_CLIENT_JWKS}" x-google-audiences: "${OAUTH_AUDIENCE}"