Let us create a simple API in Python and serving it using Nginx.
In this example we will use
Debian 9
as a distro for the server.
Alright, let's write some code.
We will create an API that will serve an array of fruits.
Let's create a
__main__.py
file: