Flask-RESTful Documentation Release 0.3.10http://localhost:5000/todo2 {"todo2": "Change my brakepads"} Or from python if you have the requests library installed: >>> from requests import put, get >>> put('http://localhost:5000/todo1', data={'data': 'Remember dictionary of iterables that map to HTTP methods and the decorators will only apply to matching requests. def cache(f): @wraps(f) def cacher(*args, **kwargs): # caching stuff return cacher handle all Flask-RESTful errors with the correct content type and error syntax as your 200-level requests. Flask-RESTful will call the handle_error() function on any 400 or 500 error that happens on a0 码力 | 42 页 | 84.60 KB | 1 年前3
共 1 条
- 1













