Skip to main content

Example API (echo)

Building an API? It's easy.

A wizard is available in the File|New|FastPlaz|API Application... menu.

echo

This example echoes back (echo) all parameters, both GET and POST, sent to this API endpoint.

It also includes tools for those who want to use Docker, as well as a builder for deploying to a serverless platform. You can try it on Amazon Lambda.

Source Code​

The Echo Example is available in the FastPlaz repository at github.com/fastplaz/echo. Git clone it, then compile.

Topics​

From this example you can learn about:

  • Building a simple API.
  • JSON, both reading JSON data and producing JSON-formatted output.
  • RAW BODY input.
  • Reading parameters via the GET and POST methods.
  • Introduction to Docker.
  • Introduction to Serverless (Amazon Lambda).

Docker​

A tutorial on how to build this Echo API with Docker is available on Luri Darmawan's Medium channel

Serverless​

//TODO: serverless tutorial