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
CakePHP Cookbook 2.x
Configuration A Note on mod_rewrite Blog Tutorial - Adding a layer Create a Post Model Create a Posts Controller Creating Post Views Adding Posts Data Validation Editing Posts Deleting Posts Routes Conclusion Configuration A Note on mod_rewrite Blog Tutorial - Adding a layer Create a Post Model Create a Posts Controller Creating Post Views Adding Posts Data Validation Editing Posts Deleting Posts Routes Conclusion created) VALUES ('The title', 'This is the post body.', NOW()); INSERT INTO posts (title, body, created) VALUES ('A title once again', 'And the post body follows.', NOW()); INSERT INTO posts (title0 码力 | 1096 页 | 958.62 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
CakePHP Cookbook 2.x
body, created) VALUES ('The title', 'This is the post body.', NOW()); INSERT INTO posts (title, body, created) VALUES ('A title once again', 'And the post body follows.', NOW()); INSERT INTO posts (title more information, but suffice it to say that naming our table ‘posts’ automati- cally hooks it to our Post model, and having fields called ‘modified’ and ‘created’ will be automagically managed by CakePHP layer to start building your first CakePHP application. Blog Tutorial - Adding a layer Create a Post Model The Model class is the bread and butter of CakePHP applications. By creating a CakePHP model0 码力 | 820 页 | 2.52 MB | 1 年前3
Laravel 5.2 中文文档}); 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 21 Route::post('foo', function () { // }); 默认情况下,routes.php 文件包含单个路由和一个路由群组,该路由群组包含的所有路由 都使用了中间件组 web,而这个中间件组为路由提供了 能。通常,我们会将所有路由定义在这个路由组中。 有效的路由方法 我们可以注册路由来响应任何 HTTP 请求: Route::get($uri, $callback); Route::post($uri, $callback); Route::put($uri, $callback); Route::patch($uri, $callback); Route::delete($uri 有时候还需要注册路由响应多个 HTTP 请求——这可以通过 match 方法来实现。或者, 甚至可以使用 any 方法注册一个路由来响应所有 HTTP 请求: Route::match(['get', 'post'], '/', function () { // }); Route::any('foo', function () { // }); 2、路由参数0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 6.0 中文文档mass assignment protection or ev ents... $post->user()->update(['foo' => 'bar']); // Model update... provides mass assignment protection and events... $post->user->update(['foo' => 'bar']); 数组化 & toArray 重新发送验证路由 HTTP 方法 影响级别:中等 为了免除潜在的 CSRF 攻击,使用 Laravel 内置邮箱验证功能通过 路由器注册的 email/resend 路由请求方法已经由 GET 更新 为 POST。因此,你需要更新前端发送请求到该路由的请求类型。例 如,如果你是用的是内置的邮箱验证模板代码,需要像这样调整请求 方法: {{ __('Before proceeding, please check verification link.') }} {{ __('If you did not receive the email') }},
Laravel 5.6 中文文档rviceProvider; class ComposerServiceProvider extends ServiceProvider{ /** * Perform post-registration booting of services. * * @return void */ public function boot() 类来修 改路由前缀以及其他的路由群组选项:  有效的路由方法 我们可以注册路由来响应任何 HTTP 请求动作: Route::get($uri, $callback); Route::post($uri, $callback); Route::put($uri, $callback); Route::patch($uri, $callback); Route::delete($uri 方法来实现。或者,可以使用 any 方法注册一个路由来响应所有 HTTP 请求动作: Route::match(['get', 'post'], 'foo', function () { return 'This is a request from get or post'; }); Route::any('bar', function () { return 'This is0 码力 | 377 页 | 14.56 MB | 1 年前3
The Definitive Guide to Yii 1.1
i on 1. A u s e r m ak e s a r e q u e s t w i t h t h e UR L http://www.example.com/index.php?r=post/ show&id=1 an d t h e W e b s e r v e r h an d l e s t h e r e q u e s t b y e x e c u t i n g t i on c om p on e n t n am e d urlManager. F or t h i s e x am p l e , t h e c on t r ol l e r i s post w h i c h r e f e r s t o t h e PostController c l as s ; an d t h e ac t i on i s show w h os e ac 6. T h e ac t i on r e ad s a Post m od e l w h os e I D i s 1 f r om t h e d at ab as e . 7. T h e ac t i on r e n d e r s a v i e w n am e d show w i t h t h e Post m od e l . 8. T h e v i e w r e0 码力 | 184 页 | 1.05 MB | 1 年前3
The Definitive Guide to Yii 1.0
i on 1. A u s e r m ak e s a r e q u e s t w i t h t h e UR L http://www.example.com/index.php?r=post/ show&id=1 an d t h e W e b s e r v e r h an d l e s t h e r e q u e s t b y e x e c u t i n g t i on c om p on e n t n am e d urlManager. F or t h i s e x am p l e , t h e c on t r ol l e r i s post w h i c h r e f e r s t o t h e PostController c l as s ; an d t h e ac t i on i s show w h os e ac 6. T h e ac t i on r e ad s a Post m od e l w h os e I D i s 1 f r om t h e d at ab as e . 7. T h e ac t i on r e n d e r s a v i e w n am e d show w i t h t h e Post m od e l . 8. T h e v i e w r e0 码力 | 164 页 | 1002.30 KB | 1 年前3
Laravel 5.3 中文文档namespace App; use Laravel\Scout\Searchable; use Illuminate\Database\Eloquent\Model; class Post extends Model { use Searchable; } trait 被添加到模型之后,当保存模型实例的时候其信息将会被同步到搜索索引: $order 组 中 注 册 服 务 提 供 者 Illuminate\Notifications\NotificationServiceProvider。 POST 到 Logout Route::auth 方法现在为/logout 注册了一个 POST 路由取代之前的 GET 路由。这可以防止其它 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel Laravel 学院致力于提供优质 Laravel 中文学习资源 16 应用让用户从应用中退出。想要升级的话,需要将原来的退出请求转化为 POST 请求方式,或者 为/logout URI 自定义 GET 路由: Route::get('/logout', 'Auth\LoginController@logout'); 授权 使用类名调用策略方法 有时候一些策略方法只接收当前认证0 码力 | 691 页 | 9.37 MB | 1 年前3
共 82 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













