google cloud enpoints
TRANSCRIPT
Google Cloud EndpointsHow to add RESTful APIs to an App Engine project
Mattia Gasperotti, GDG Trento
Introducing Google Cloud Endpoints
Google Cloud Endpoints consists of tools that allow you to generate APIs and client libraries from an App Engine application.
Endpoints makes it easier to create a web backend for web clients and mobile clients (Android, iOs…)
Supported App Engine runtimes
developers.google.com/appengine/docs/java/endpoints/overview
developers.google.com/appengine/docs/python/endpoints/overview
The development process
1. Write your App Engine backend code as usual
2. Annotate your App Engine backend code (so classes and client libraries can be generated from it).
3. Generate the client library using Google Plugin for
Eclipse [or endpoints.sh (for Linux), or endpoints.cmd
(for Windows)]
4. Write your client app using the generated client libraries
@Annotation
Endpoint annotations describe API configuration, methods, parameters, and other vital details that define the properties and behavior of the Endpoint
https://developers.google.com/appengine/docs/java/endpoints/annotations
Generate Google Cloud EndpointClient Library
https://developers.google.com/eclipse/
APIs ExplorerThe Google APIs Explorer is a tool that helps you explore various APIs.
With the APIs Explorer, you can:
● Browse available APIs and versions.● Explore: see methods available for each API and what
parameters they support along with inline documentation.
● Test: execute requests for any method and see responses in real time.
Some usefull linkJava● Docs: developers.google.com/appengine/docs/java/endpoints/overview● Sample: github.com/GoogleCloudPlatform/appengine-endpoints-tictactoe-
java
Python● Docs: developers.google.com/appengine/docs/python/endpoints/overview● Sample: github.com/GoogleCloudPlatform/appengine-endpoints-tictactoe-
python