This example demonstrate how to develop a Google Cloud Endpoint service from scratch. I try my best to keep the commits clean and easy to read. So if you want to learn step by step, you may read from first commit
Concept you should know:
- Google Cloud Endpoint can be used in App Engine flexible environment, App Engine standard environment, Compute Engine and Container Engine.
- This example only demonstrate GAE Standard Environment for Python
- To implement GAE Standard Environment, you need to use protorpc
- Cloud Endpoints supports OpenApi Spec(also known as Swagger Spec) and gRPC, GAE Standard Environment only support OpenApi
- You can use (Api Explorer)[https://developers.google.com/apis-explorer] to test your api, by the path /_ah/api/explorer
Official Deployment Doc For TLDR
- First you need to generate the spec by endpoints command to json
- Deploy the json spec to service-management
- Configure app.yaml with ENDPOINTS_SERVICE_VERSION and ENDPOINTS_SERVICE_NAME
- Deploy the app