Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honewatson/tornado-rest-api-angularjs
Tornado Rest Api AngularJs
https://github.com/honewatson/tornado-rest-api-angularjs
Last synced: 2 months ago
JSON representation
Tornado Rest Api AngularJs
- Host: GitHub
- URL: https://github.com/honewatson/tornado-rest-api-angularjs
- Owner: honewatson
- Created: 2013-04-28T07:37:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-29T07:31:00.000Z (over 11 years ago)
- Last Synced: 2024-08-04T04:05:34.605Z (6 months ago)
- Language: Python
- Size: 134 KB
- Stars: 13
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- starred-awesome - tornado-rest-api-angularjs - Tornado Rest Api AngularJs (Python)
README
tornado-rest-api-angularjs
==========================Tornado Rest Api AngularJs
pip install -r requirements.txt
You must also install Mongodb.
App layout
* /app/__init__.py
* /app/objects.py
* /app/config.pyFor app/objects.py see Schematics documentation and examples:
https://github.com/j2labs/schematics/blob/master/docs/DEMOS.md
Running the app:
python server.py
http://127.0.0.1:8888/
Routes:
* /animal/list ( GET )
* /animal/get/:id ( GET)
* /animal ( POST )
* /animal/update/:id ( PUT )
* /animal/delete/:id ( DELETE )'id' is a Mongodb objectid in string format.
* curl --data "name=dog" http://127.0.0.1:8888/animal
* curl http://127.0.0.1:8888/animal/list