Flask Documentation (1.1.x)
virtualenv Quickstart A Minimal Application What to do if the Server does not Start Debug Mode Routing Static Files Rendering Templates Accessing Request Data Redirects and Errors About Responses Sessions changelog are here for the interested. Design Decisions in Flask The Explicit Application Object The Routing System One Template Engine Micro with Dependencies Thread Locals What Flask is, What Flask is Not palletsprojects.com/debug/#using-the-debugger]. Have another debugger in mind? See Working with Debuggers. Routing Modern web applications use meaningful URLs to help users. Users are more likely to like a page0 码力 | 428 页 | 895.98 KB | 1 年前3Flask Documentation (1.1.x)
in the Werkzeug documentation. Have another debugger in mind? See Working with Debuggers. 1.4.4 Routing Modern web applications use meaningful URLs to help users. Users are more likely to like a page request that raises the exception. However, the blueprint cannot handle 404 routing errors because the 404 occurs at the routing level before the blueprint can be determined. Generic Exception Handlers this handler will trigger for things you don’t cause directly, such as 404 and 405 errors during routing. Be sure to craft your handler carefully so you don’t lose information about the HTTP error. from0 码力 | 291 页 | 1.25 MB | 1 年前3Flask-RESTful Documentation Release 0.3.6
started in using Flask- RESTful with Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ 0 码力 | 49 页 | 91.90 KB | 1 年前3Flask-RESTful Documentation Release 0.3.8
started in using Flask- RESTful with Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ 0 码力 | 55 页 | 93.30 KB | 1 年前3Flask-RESTful Documentation Release 0.3.7
started in using Flask- RESTful with Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ 0 码力 | 55 页 | 93.21 KB | 1 年前3Flask-RESTful Documentation Release 0.3.10
started in using Flask- RESTful with Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ 0 码力 | 42 页 | 84.60 KB | 1 年前3Flask-RESTful Documentation Release 0.3.6
test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask TODOS[todo_id] = {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ is not required here because registering the blueprint with the app takes care of setting up the routing for the application. 1.6.3 Full Parameter Parsing Example Elsewhere in the documentation, we’ve 0 码力 | 46 页 | 245.60 KB | 1 年前3Flask-RESTful Documentation Release 0.3.7
test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask TODOS[todo_id] = {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ is not required here because registering the blueprint with the app takes care of setting up the routing for the application. 1.6.3 Full Parameter Parsing Example Elsewhere in the documentation, we’ve 0 码力 | 50 页 | 253.09 KB | 1 年前3Flask-RESTful Documentation Release 0.3.8
test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask TODOS[todo_id] = {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ is not required here because registering the blueprint with the app takes care of setting up the routing for the application. 1.6.3 Full Parameter Parsing Example Elsewhere in the documentation, we’ve 0 码力 | 50 页 | 253.64 KB | 1 年前3Flask-RESTful Documentation Release 0.3.10
test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful Routing The main building block provided by Flask-RESTful are resources. Resources are built on top of Flask TODOS[todo_id] = {'task': args['task']} return TODOS[todo_id], 201 ## ## Actually setup the Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ is not required here because registering the blueprint with the app takes care of setting up the routing for the application. 1.6.3 Full Parameter Parsing Example Elsewhere in the documentation, we’ve 0 码力 | 39 页 | 212.29 KB | 1 年前3
共 10 条
- 1