@rhernand3z
after doing a bit of digging the main thing i could see you having problems with api key auth is to make sure you have this in your security definition
securityDefinitions:
# This section configures basic authentication with an API key.
api_key:
type: "apiKey"
name: "key"
in: "query"
and in addition to create the api key entry for
API_ID specifies the name of your API.
PROJECT_ID specifies the name of your Google Cloud project.
@rhernand3z after doing a bit of digging the main thing i could see you having problems with api key auth is to make sure you have this in your security definition
and in addition to create the api key entry for
API_ID specifies the name of your API.
PROJECT_ID specifies the name of your Google Cloud project.
gcloud services enable API_ID.apigateway.PROJECT_ID.cloud.goog
i believe you still need to run that command even if your api key is set to unrestricted to create the entry in GCP behind the scenes.
Hey Alex,
I'll give this a shot, I didn't execute the last step via
gcloud services enable...
, might have been the culprit. Thanks for digging into this 👍Hey @amammay -- I was able to get it working properly. You were right the culprit was not executing:
gcloud services enable ...
Thanks for your help and a great article!