Files for my REST API tutorials featuring a server written in Python and a web client written in Javascript. Here are the articles:
- Designing a RESTful API with Python and Flask
- Writing a Javascript REST client
- Designing a RESTful API using Flask-RESTful
- Install Python 2.7 and git.
- Run
setup.sh
(Linux, OS X, Cygwin) orsetup.bat
(Windows) - Run
./rest-server.py
to start the server (on Windows useflask\Scripts\python rest-server.py
instead) - Alternatively, run
./rest-server-v2.py
to start the Flask-RESTful version of the server. - Open
http://localhost:5000/index.html
on your web browser to run the client