Created
July 25, 2014 07:13
-
-
Save jansabbe/37796a0cb5b7ec1e5f92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, jsonify, request | |
app = Flask(__name__) | |
@app.route("/api/users") | |
def users(): | |
return jsonify(users = [ | |
{ | |
"firstname":"Joske", | |
"lastname": "Vermeulen" | |
}, | |
{ | |
"firstname":"Albert", | |
"lastname": "Van achter het Hoekske" | |
} | |
]) | |
if __name__ == "__main__": | |
app.run(debug=True,port=8080) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment