あなたはopenapi.yaml
(旧swagger.yaml
)にこの設定を追加する必要があります。
swagger: '2.0'
info:
version: 1.0.0
title: "My Endpoints"
host: my-backend-api.YOUR-PROJECT-ID.appspot.com
basePath: "/_ah/api"
schemes:
- "https"
consumes:
- "application/json"
produces:
- "application/json"
paths:
/testAPI/v1/echo:
get:
operationId: TestAPIEcho
responses:
200:
description: A successful response
schema:
$ref: "#/definitions/echoMessage"
parameters:
- name: message
in: query
required: true
type: string
x-security:
- firebase
definitions:
echoMessage:
properties:
message:
type: "string"
security:
- api_key: []
securityDefinitions:
firebase:
flow: "implicit"
type: "oauth2"
# Replace YOUR-PROJECT-ID with your project ID
x-issuer: "https://securetoken.google.com/YOUR-PROJECT-ID"
x-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/[email protected]"
コメントが削除従うとき、それは自動的に含まれています。指摘してくれてありがとう。 – nop77svk