Created
July 6, 2015 18:25
-
-
Save aniruddha-adhikary/b614df4104c71edaaa42 to your computer and use it in GitHub Desktop.
mini api server in python and bottle
This file contains hidden or 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 bottle import run, route | |
import json | |
list_of_movies = ['The King of Pythons', "The Lord of the Horns"] | |
@route('/movies') | |
def get_movies(): | |
return json.dumps(list_of_movies) | |
run(host='localhost', port=8080) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment