Falcon v1.4.1-post-1 Documentationencoded as JSON.', href='http://docs.examples.com/api/json') if req.method in ('POST', 'PUT'): if 'application/json' not in req.content_type: raise falcon.H 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def on_post(self, req, resp, user_id): try: doc = req.context['doc'] except KeyError: /players/45301f54/achievements the “list of all achievements for the player resource with ID 45301f54”. POST /players/45301f54/achievements └──────┘ └────────────────────────────────┘ Action0 码力 | 229 页 | 273.39 KB | 1 年前3
Falcon v1.4.1 DocumentationFalcon Documentation Release 1.4.1.post-1 Kurt Griffiths et al. Aug 08, 2018 Contents 1 What People are Saying 3 2 Quick Links 5 3 Features 7 4 Who’s Using Falcon? 9 5 Documentation 11 5.1 User . . . . . . . . . . . . 137 Python Module Index 149 i ii Falcon Documentation, Release 1.4.1.post-1 Release v1.4 (Installation) Falcon is a minimalist WSGI library for building speedy web APIs and serialize]) app.add_route('/items/{id}', CatalogItem()) Contents 1 Falcon Documentation, Release 1.4.1.post-1 2 Contents CHAPTER 1 What People are Saying “We have been using Falcon as a replacement for0 码力 | 158 页 | 587.88 KB | 1 年前3
Falcon v2.0.0 Documentationsupports responses encoded as JSON.', href='http://docs.examples.com/api/json') if req.method in ('POST', 'PUT'): if 'application/json' not in req.content_type: raise falcon.HTTPUnsupportedMediaType( set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def on_post(self, req, resp, user_id): try: doc = req.context.doc except AttributeError: raise falcon.HTTPBadRequest( /players/45301f54/achievements the “list of all achievements for the player resource with ID 45301f54”. POST /players/45301f54/achievements Action Resource Identifier In the REST architectural style, the URL0 码力 | 184 页 | 671.87 KB | 1 年前3
Falcon v3.0.0-b2 Documentationsupports responses encoded as JSON.', href='http://docs.examples.com/api/json') if req.method in ('POST', 'PUT'): if 'application/json' not in req.content_type: raise falcon.HTTPUnsupportedMediaType( set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def on_post(self, req, resp, user_id): try: doc = req.context.doc except AttributeError: raise falcon.HTTPBadRequest( Release 3.0.0b2 (continued from previous page) /{user_id}/things - ThingsResource: GET - on_get POST - on_post • Middleware (Middleware are independent): → AuthMiddleware.process_request → RequireJSON.process_request0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.0.0 Documentationsupports responses encoded as JSON.', href='http://docs.examples.com/api/json') if req.method in ('POST', 'PUT'): if 'application/json' not in req.content_type: raise falcon.HTTPUnsupportedMediaType( set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def on_post(self, req, resp, user_id): try: doc = req.context.doc except AttributeError: raise falcon.HTTPBadRequest( Release 3.0.0 (continued from previous page) /{user_id}/things - ThingsResource: GET - on_get POST - on_post • Middleware (Middleware are independent): → AuthMiddleware.process_request → RequireJSON.process_request0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationsupports responses encoded as JSON.', href='http://docs.examples.com/api/json') if req.method in ('POST', 'PUT'): if 'application/json' not in req.content_type: raise falcon.HTTPUnsupportedMediaType( set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def on_post(self, req, resp, user_id): try: doc = req.context.doc except AttributeError: raise falcon.HTTPBadRequest( Release 3.0.1 (continued from previous page) /{user_id}/things - ThingsResource: GET - on_get POST - on_post • Middleware (Middleware are independent): → AuthMiddleware.process_request → RequireJSON.process_request0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.0-b1 Documentationsupports responses encoded as JSON.', href='http://docs.examples.com/api/json') if req.method in ('POST', 'PUT'): if 'application/json' not in req.content_type: raise falcon.HTTPUnsupportedMediaType( set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def on_post(self, req, resp, user_id): try: doc = req.context.doc except AttributeError: raise falcon.HTTPBadRequest( example application: Falcon App (WSGI) • Routes: /{user_id}/things - ThingsResource: GET - on_get POST - on_post • Middleware (Middleware are independent): → AuthMiddleware.process_request → RequireJSON.process_request0 码力 | 338 页 | 1.14 MB | 1 年前3
Falcon v3.1.1-b3 Documentationsupports responses encoded as JSON.', href='http://docs.examples.com/api/json', ) if req.method in ('POST', 'PUT'): if 'application/json' not in req.content_type: raise falcon.HTTPUnsupportedMediaType( set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def on_post(self, req, resp, user_id): try: doc = req.context.doc except AttributeError: raise falcon.HTTPBadRequest( example application: Falcon App (WSGI) • Routes: /{user_id}/things - ThingsResource: GET - on_get POST - on_post • Middleware (Middleware are independent): → AuthMiddleware.process_request → RequireJSON.process_request0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationsupports responses encoded as JSON.', href='http://docs.examples.com/api/json', ) if req.method in ('POST', 'PUT'): if 'application/json' not in req.content_type: raise falcon.HTTPUnsupportedMediaType( set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def on_post(self, req, resp, user_id): try: doc = req.context.doc except AttributeError: raise falcon.HTTPBadRequest( example application: Falcon App (WSGI) • Routes: /{user_id}/things - ThingsResource: GET - on_get POST - on_post • Middleware (Middleware are independent): → AuthMiddleware.process_request → RequireJSON.process_request0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a Documentationsupports responses encoded as JSON.', href='http://docs.examples.com/api/json', ) if req.method in ('POST', 'PUT'): if 'application/json' not in req.content_type: raise falcon.HTTPUnsupportedMediaType( set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def on_post(self, req, resp, user_id): try: doc = req.context.doc except AttributeError: raise falcon.HTTPBadRequest( example application: Falcon App (WSGI) • Routes: /{user_id}/things - ThingsResource: GET - on_get POST - on_post • Middleware (Middleware are independent): → AuthMiddleware.process_request → RequireJSON.process_request0 码力 | 378 页 | 1.29 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













