Update lab 17 authored by Dan McQuillan's avatar Dan McQuillan
...@@ -81,6 +81,11 @@ apis ...@@ -81,6 +81,11 @@ apis
* remember from step 0 that the most common format for returning api data is json * remember from step 0 that the most common format for returning api data is json
* we will create a simple api for our mytwits flask app using a flask function called jsonify http://flask.pocoo.org/docs/0.12/api/#flask.json.jsonify * we will create a simple api for our mytwits flask app using a flask function called jsonify http://flask.pocoo.org/docs/0.12/api/#flask.json.jsonify
* this will directly return your json structure to the browser * this will directly return your json structure to the browser
* you will need to import jsonify at the top of your app i.e.
from flask import jsonify
## db -> api ## db -> api
... ...
......