Skip to content

Instantly share code, notes, and snippets.

@aniruddha-adhikary
Created July 6, 2015 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniruddha-adhikary/b614df4104c71edaaa42 to your computer and use it in GitHub Desktop.
Save aniruddha-adhikary/b614df4104c71edaaa42 to your computer and use it in GitHub Desktop.
mini api server in python and bottle
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