At the core of this simple Flask app is Faker.
The API is available at /api/ and can take the following GET arguments:
GET parameter | Default | Description |
---|---|---|
per_page | 10 | the number of results per page |
page | 0 | the page number. First page is 0. |
total | per_page * 2 |
the number of results in total |
seed | 1337405335 | the random number genorator seed. |
This simple app is deployed to Heroku when master
is pushed to. The
Procfile
defines the web service which is a simple gunicorn command
with eventlet
workers. You can find the app at
https://fake-realtor-api.herokuapp.com/.