Introduction to Cloud Endpoints

Lab Details:

  1. This lab walks you through Cloud Endpoints.

  2. Region: us-central1 

  3. Duration: 60 minutes

Note: Do not refresh the page after you click Start Lab, wait for up to 45 seconds to get the credentials.
In case while login into Google, if it asks for verification, please enter your mobile number and verify with OTP, Don't worry this Google Account will be deleted after the lab.

What is Cloud Endpoints?

  • App Engine is a platform where Cloud Endpoints enabled apps can be hosted. Cloud Endpoints provides frameworks that enable you to write RESTful APIs, with features of managing your APIs.

  • Using services like Cloud Run, Cloud Functions, and App Engine, it is very easy and quick to create APIs. However, Security, Monitoring, and Publishing APIs is a major challenge.

  • Cloud Endpoints is an API management system that provides an API console, hosting, logging, and monitoring features to help you to create, share, maintain and secure APIs.

  • Cloud Endpoints is just a middle man between the client (consumer) of your API services. REST is just a convention using HTTP verbs for communicating.

  • Endpoints allow you to expose a clear interface whereas the underlying implementation can be a mess. You define endpoints and route queries to different implementations: Functions, VM, Cloud Run, App Engine, and even on another cloud!

  • Endpoints can be authenticated (especially API keys).

  • When you write your API, each endpoint maps to a backend function. Inside that function, you can mention your business logic, but typically it will be either:?

    • Deserialize your posted JSON, validate it, and write some entities to Database.

    • Reading data from Database and serialize them to JSON and return them to the client.

  • Just like organizations need services management for microservices, they need API management for their APIs, that's where Cloud Endpoint comes into the picture.

  • Endpoints are independent of languages. You can build the API in any language and REST framework that supports API description using an OpenAPI configuration file.

  • The process to use Endpoints for OpenAPI, you:

    • Configuring Endpoints: You describe the API surface and configure Endpoints features, such as API keys or authentication rules, in an OpenAPI configuration file.

    • Deploying the Endpoints configuration: After you define your API in an OpenAPI configuration file, you use the Cloud SDK to deploy it to Service Management, which Endpoints use to manage your API. Now Endpoints knows all about your API and how to secure it.

    • Deploying the API Backend: You deploy ESP or ESPv2 and your API backend to a supported Google Cloud backend, such as App Engine. ESP maps with Endpoint's backend services to secure and monitor your API at runtime.

Architecture Diagram:

Lab Tasks:

  1. Downloading an Application containing Endpoints.

  2. Deploying the Application on App Engine.

  3. Testing the Output.

Join Whizlabs_Hands-On to Read the Rest of this Lab..and More!

Step 1 : Login to My-Account
Step 2 : Click on "Access Now" to view the course you have purchased
Step 3 : You will be taken to our Learn Management Solution (LMS) to access your Labs,Quiz and Video courses

Open Console