Falcon v2.0.0 Documentationin " "the future than in the past." ), 'author': 'Grace Hopper' } resp.media = quote api = falcon.API() api.add_route('/quote', QuoteResource()) Contents 1 Falcon Documentation, Release 2.0.0 2 Python packages. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s Learning by Example Here is a simple example from Falcon’s README, showing how to get started writing an API: # things.py # Let's get this party started! import falcon # Falcon follows the REST architectural0 码力 | 184 页 | 671.87 KB | 1 年前3
 Falcon v3.0.1 Documentationrouting and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access routing and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access large-scale deployments. Flexible. Falcon leaves a lot of decisions and i`mplementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 344 页 | 1.16 MB | 1 年前3
 Falcon v3.0.0-b2 Documentationlarge-scale deployments. Flexible. Falcon leaves a lot of decisions and i`mplementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s client_accepts_json: raise falcon.HTTPNotAcceptable( description='This API only supports responses encoded as JSON.', href='http://docs.examples.com/api/json') if req.method in ('POST', 'PUT'): if 'application/json' content_type: raise falcon.HTTPUnsupportedMediaType( title='This API only supports requests encoded as JSON.', href='http://docs.examples.com/api/json') class JSONTranslator: # NOTE: Normally you would simply0 码力 | 340 页 | 1.15 MB | 1 年前3
 Falcon v3.0.0 Documentationrouting and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access routing and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access large-scale deployments. Flexible. Falcon leaves a lot of decisions and i`mplementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 344 页 | 1.16 MB | 1 年前3
 Falcon v3.0.0-b1 Documentationlarge-scale deployments. Flexible. Falcon leaves a lot of decisions and i`mplementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s client_accepts_json: raise falcon.HTTPNotAcceptable( description='This API only supports responses encoded as JSON.', href='http://docs.examples.com/api/json') if req.method in ('POST', 'PUT'): if 'application/json' content_type: raise falcon.HTTPUnsupportedMediaType( title='This API only supports requests encoded as JSON.', href='http://docs.examples.com/api/json') class JSONTranslator: # NOTE: Normally you would simply0 码力 | 338 页 | 1.14 MB | 1 年前3
 Falcon v2.0.0 Documentation" ), 'author': 'Grace Hopper' } resp.media = quote api = falcon.API() api.add_route('/quote', QuoteResource()) What People are Saying “We have been using Falcon Documentation User Guide Introduction Installation Quickstart Tutorial FAQ Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Media Redirection Middleware Hooks Routing Python packages. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 265 页 | 299.57 KB | 1 年前3
 Falcon v3.1.1-b3 Documentationrouting and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access routing and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access large-scale deployments. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 378 页 | 1.29 MB | 1 年前3
 Falcon v3.1.1-b1 Documentationrouting and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access routing and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access large-scale deployments. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 378 页 | 1.29 MB | 1 年前3
 Falcon v3.1.1-a Documentationrouting and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access routing and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access large-scale deployments. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 378 页 | 1.29 MB | 1 年前3
 Falcon v3.1.0 Documentationrouting and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access routing and state management • Stable interfaces with an emphasis on backwards-compatibility • Simple API modeling through centralized RESTful routing • Highly-optimized, extensible code base • Easy access large-scale deployments. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 362 页 | 1.29 MB | 1 年前3
共 40 条
- 1
 - 2
 - 3
 - 4
 













