Skip to content

Instantly share code, notes, and snippets.

@jansabbe
Created July 25, 2014 07:13
Show Gist options
  • Save jansabbe/37796a0cb5b7ec1e5f92 to your computer and use it in GitHub Desktop.
Save jansabbe/37796a0cb5b7ec1e5f92 to your computer and use it in GitHub Desktop.
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