- Setting up env
$env:FLASK_APP = "app/run"
flask run
Params - lat=32.1231
| long=42.1312
Return - A JSON that will have posts
and meta
properties. posts
will include posts within 1000km of the given location. meta
will contain the pagination information.
Form Data - location="<lat,long>"
text="string"
Return - A JSON with message, whether the post creation was sucessful or not.
Params - lat=32.1231
| long=42.1312
Return - A JSON (fetched from open weather API).