I created open API by using Nodejs and deploy on google cloud endpoints also trying to implement securing this API by using an API key.
Then, I created openapi.yaml file added security definition in the bottom that is :
# [START securityDef]
securityDefinitions:
# This section configures basic authentication with an API key.
api_key:
type: "apiKey"
name: "X-API-KEY"
in: "query"
# [END securityDef]
And Under the path added security:
"/api/getProduct":
get:
description: "Get product data."
operationId: "getProduct"
produces:
- "application/json"
responses:
200:
description: "getProduct"
schema:
$ref: "#/definitions/echoMessage"
security:
- api_key: []
After this, when I'm deploying the endpoint getting the message as shown in below image:
Now, I'm unable to understand what to do next?
Please, anyone can help me on the same. Thanks in advance.