Falcon v2.0.0 Documentation
we require 100% coverage at all times. Falcon does not depend on any external Python packages. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives resource. Since we are building an image-sharing API, let’s start by creating an “images” resource. Create a new module, images.py next to app.py, and add the following code to it: import json import falcon falcon class Resource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } # Create a JSON representation of the resource resp0 码力 | 184 页 | 671.87 KB | 1 年前3CakePHP Cookbook 2.x
you’ll be able to take advantage of a lot of free functionality and avoid configuration. CakePHP is flexible enough to accommodate even the worst legacy database schema, but adhering to convention will save will run into mod_rewrite issues. For example if the CakePHP welcome page looks a little funny (no images or CSS styles), it probably means mod_rewrite is not functioning on your system. Please refer to Keep in mind that this tutorial was very basic. CakePHP has many more features to offer, and is flexible in ways we didn’t wish to cover here for simplicity’s sake. Use the rest of this manual as a guide0 码力 | 1096 页 | 958.62 KB | 1 年前3Falcon v1.4.1 Documentation
we require 100% coverage at all times. Six and mimeparse are the only third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives resource. Since we are building an image-sharing API, let’s start by creating an “images” resource. Create a new module, images.py next to app.py, and add the following code to it: import json import falcon falcon class Resource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } # Create a JSON representation of the resource (continues0 码力 | 158 页 | 587.88 KB | 1 年前3Falcon v1.4.0 Documentation
we require 100% coverage at all times. Six and mimeparse are the only third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives resource. Since we are building an image-sharing API, let’s start by creating an “images” resource. Create a new module, images.py next to app.py, and add the following code to it: import json import falcon falcon class Resource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } # Create a JSON representation of the resource0 码力 | 156 页 | 573.94 KB | 1 年前3Falcon v1.4.1 Documentation
we require 100% coverage at all times. Six and mimeparse are the only third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives resource. Since we are building an image-sharing API, let’s start by creating an “images” resource. Create a new module, images.py next to app.py, and add the following code to it: import json import falcon falcon class Resource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } # Create a JSON representation of the resource0 码力 | 156 页 | 574.46 KB | 1 年前3Falcon v2.0.0 Documentation
your application Request and Response Objects Refactoring for testability Functional tests Serving Images Introducing Hooks Error Handling What Now? FAQ Design Philosophy Performance Routing Extensibility we require 100% coverage at all times. Falcon does not depend on any external Python packages. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives resource. Since we are building an image-sharing API, let’s start by creating an “images” resource. Create a new module, images.py next to app.py, and add the following code to it: import json import falcon0 码力 | 265 页 | 299.57 KB | 1 年前3CakePHP Cookbook 3.x
leverage CakePHP more effectively and avoid needing to configure the framework. While CakePHP is flexible enough to accommodate almost any database schema, adhering to the conventions will save you time not be empty, and have certain length constraints. CakePHP’s validation engine is powerful and flexible. It provides a suite of frequently used rules for tasks like email addresses, IP addresses etc. Security::randomString() was added. Validation Validation::compareFields() was added as a more flexible version of Validation::compareWith(). Validator::notSameAs() was added to make it easier to check0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook 2.x
you’ll be able to take advantage of a lot of free functionality and avoid configuration. CakePHP is flexible enough to accommodate even the worst legacy database schema, but adhering to convention will save will run into mod_rewrite issues. For example if the CakePHP welcome page looks a little funny (no images or CSS styles), it probably means mod_rewrite is not functioning on your system. Please refer to Keep in mind that this tutorial was very basic. CakePHP has many more features to offer, and is flexible in ways we didn’t wish to cover here for simplicity’s sake. Use the rest of this manual as a guide0 码力 | 820 页 | 2.52 MB | 1 年前3CakePHP Cookbook 3.x
leverage CakePHP more effectively and avoid needing to configure the framework. While CakePHP is flexible enough to accom- modate almost any database schema, adhering to the conventions will save you time not be empty, and have certain length constraints. CakePHP’s validation engine is powerful and flexible. It provides a suite of frequently used rules for tasks like email addresses, IP addresses etc. Security::randomString() was added. Validation • Validation::compareFields() was added as a more flexible version of Validation::compareWith(). • Validator::notSameAs() was added to make it easier to check0 码力 | 967 页 | 2.80 MB | 1 年前3Falcon v3.1.1-b3 Documentation
this makes it easier to reason about the code and to debug edge cases in large-scale deployments. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives creating an “images” resource. Create a new module, images.py next to app.py, and add the following code to it: import json import falcon class Resource: def on_get(self, req, resp): doc = { 'images': [ { { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } # Create a JSON representation of the resource resp.text = json.dumps(doc, ensure_ascii=False) # The following line can be omitted0 码力 | 378 页 | 1.29 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100