These scripts help you get started with Google Cloud Endpoints quickly and easily. They are designed for use with the Endpoints Quickstart Guide.
The included API lets you query the name of an airport from its three-letter IATA code.
This is an example application, not an official Google product.
-
Create a new Cloud Platform project.
-
Enable billing for your project.
-
Open the Google Cloud Platform Console.
These scripts will not work in Windows. If you have a Windows machine, we recommend you use Google Cloud Shell.
-
Download and install the Google Cloud SDK, which includes the gcloud command-line tool.
-
Initialize the Cloud SDK.
gcloud init
-
Set your default project (replace YOUR-PROJECT-ID with the name of your project).
gcloud config set project YOUR-PROJECT-ID
cd scripts
./deploy_api.sh; : Deploy the API.
./deploy_app.sh; : Deploy the backend app.
./query_api.sh; : Query the API.
./generate_traffic.sh; : Send traffic to the API.
./generate_traffic.sh ASDF; : Send error traffic to the API.
# And after you're done...
./delete_project.sh; : Delete your project.
Note: these scripts will create an App Engine project and deploy an app!
See LICENSE.
Thanks to David Megginson for providing the airport data!