Changes
Page history
Update lab 17
authored
Mar 01, 2018
by
Dan McQuillan
Show whitespace changes
Inline
Side-by-side
lab-17.md
View page @
567aa271
...
...
@@ -81,6 +81,11 @@ apis
*
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
*
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
...
...
...
...