Backend API Tutorial
In this tutorial, we'll build two apps:
- Build, run, and test a simple Hello World backend API showing the bare mininum code you need to add for a backend API.
-
Build, run, and test a complete, runnable, Hello Endpoints backend API that demonstrates a more functional backend API, including:
- Handling GETs.
- Handling POSTs.
- OAuth protected methods.
- Deploy the backend API to production App Engine.
Topics covered
The following topics lead you through the tutorial:
- Setup : Requirements, such as Java and Maven.
- Creating a Simple Hello World Backend API : Create, run, and test the simplest possible backend API.
- Creating the Hello Endpoints Complete Sample Backend API : Create, run, test, and deploy a more complete backend API.
- Hello Endpoints Code Walkthrough : Learn more about backends via a brief code commentary on the Hello Endpoints API.
Alternate sample code locations
The
Hello World
sample is built from the App Engine Maven Endpoints
skeleton artifact during the tutorial, with some additional coding. If you want to use a completed version
of this at GitHub, you can download the project from the code repository containing the
appengine-endpoints-helloworld-java-maven
project.
The
Hello Endpoints
program is built completely using the App Engine Maven Hello
Endpoints artifact during the tutorial. If you want to use a version of this at GitHub,
you can download the project from the code repository containing the
appengine-endpoints-helloendpoints-java-maven
project.