Getting Started With FOSRestBundle

Installation(安装)

Installation is a quick (I promise!) 1 step process:

安装只需一步(我发誓)

  1. Setting up the bundle(安装功能包)

Bundle usage(功能包用法)

Before you start using the bundle it is advised you run a quick look over the 5 sections listed below.This bundle contains many features that are loosly coupled so you may or may not need to use all ofthem. This bundle is just a tool to help you in the job of creating a REST API with Symfony2.

在您开始使用功能包之前,建议您先快速浏览下列5部分内容。这个功能包有着许多松耦合的功能,您可能不需要使用所有的功能。它只是个帮助您在Symfony2中创建REST风格API的工具。

FOSRestBundle provides several tools to assist in building REST applications:

FOSRestBundle提供几个工具来帮助构建REST应用:

  • The view layer

  • 视图层

  • Listener support

  • 监听器支持

  • ExceptionController support

  • 异常控制器支持

  • Automatic route generation: single RESTful controller (for simple resources)

  • 自动路由生成:单个REST风格的控制器(针对单个资源)

  • Automatic route generation: multiple RESTful controllers (for resources with child/subresources)

  • 自动路由生成:多个REST风格的控制器(针对有着子资源的资源)

Config reference(配置参考)

Check out the configuration reference for a reference on the available configuration options.

查看配置参考以参考可用的配置选项。

Example application(s)(应用示例)

The following bundles/applications use the FOSRestBundle and can be used as aguideline:

下列功能包/应用可以做为使用FOSRestBundle的示例:

  • The LiipHelloBundle provides several examples for the RestBundle:https://github.com/liip/LiipHelloBundle

  • LiipHelloBundle功能包提供了几种使用FOSRestBundle的示例:https://github.com/liip/LiipHelloBundle

  • There is also a fork of the Symfony2 Standard Edition that is configured toshow the LiipHelloBundle examples:https://github.com/liip-forks/symfony-standard/tree/techtalk

  • 这里有一个Symfony2标准版的分支,来于展示LiipHelloBundle的配置示例:https://github.com/liip-forks/symfony-standard/tree/techtalk

  • The FOSCommentBundle uses FOSRestBundle for its api:https://github.com/FriendsOfSymfony/FOSCommentBundle

  • FOSCommentBundle功能包使用FOSRestBundle生成API:https://github.com/FriendsOfSymfony/FOSCommentBundle

本文转自 firehare 51CTO博客,原文链接:http://blog.51cto.com/firehare/1247893,如需转载请自行联系原作者

FOSRestBundle功能包:使用指南相关推荐

  1. FOSRestBundle功能包:自动路由生成-单REST风格控制器

    原文出处:5-automatic-route-generation_single-restful-controller.md 原文作者:FriendsOfSymfony 授权许可:创作共用协议 翻译人 ...

  2. FOSRestBundle功能包:视图层

    原文出处:2-the-view-layer.md 原文作者:FriendsOfSymfony 授权许可:创作共用协议 翻译人员:FireHare 校对人员: 适用版本:FOSRestBundle 0. ...

  3. FOSRestBundle功能包:概述

    原文出处:README.md 原文作者:FriendsOfSymfony 授权许可:创作共用协议 翻译人员:FireHare 校对人员: 适用版本:FOSRestBundle 0.12.0 文章状态: ...

  4. FOSCommentBundle功能包:改变样式

    Step 5: Style it This bundle supplies some basic CSS markup that will make it usable. It's included ...

  5. FOSCommentBundle功能包:基于ACL安全添加角色

    注意: This bundle ships with support different security setups. You can also have a look at Adding Sym ...

  6. FOSCommentBundle功能包:添加Symfony2内建的ACL安全

    原文出处:8-adding_symfony2s_builtin_acl_security.md 原文作者:FriendsOfSymfony 授权许可:创作共用协议 翻译人员:FireHare 校对人员 ...

  7. 进阶必看 | R包制作指南-windows系统

    R包制作指南 准备工作 开始创建R包 在Rstudio内完成R包构建    先前与大家分享过如何安装和使用R包,也与大家分享过自定义函数,这些都是R包的基础.一般来说,会将写好的函数进行封装,打包起来 ...

  8. 《动手学ROS2》3.5.1创建工作空间和功能包

    本系列教程作者:小鱼 公众号:鱼香ROS QQ交流群:139707339 教学视频地址:小鱼的B站 完整文档地址:鱼香ROS官网 版权声明:如非允许禁止转载与商业用途. 3.4.1 创建工作空间和功能 ...

  9. 在新建好的ROS空间里面添加功能包

    第一步:创建功能包 cd catkin_ws 打开src ~/catkin_ws/src 新建文件夹名字 catkin_create_pkg (文件加名字) roscpp rospy std_msgs ...

  10. ros自带package在哪里_【ROS】创建ROS功能包(ROS package)

    创建功能包(ROS package) 1 常用工具 roscreate-pkg catkin 2 catkin package组成 命名规则 只允许使用小写字母,数字,下划线三种元素组成,并且首字母必 ...

最新文章

  1. javascript操作表单
  2. 开发人员最喜爱的十大免费的Visual Studio插件
  3. 【数学和算法】初识卡尔曼滤波器(五)
  4. java调接口传值_关于调用第三方接口时传递参数是File类型的解决方式
  5. 2016年4月11日作业(法律法规、标准规范、职业道德)
  6. C语言“悬空指针”和“野指针”究竟是什么意思?
  7. wrapper怎么用_用责任链模式设计拦截器
  8. 致加西亚的信 - 摘录
  9. 坑,MySQL中 order by 与 limit 混用,分页会出现问题!
  10. 400本以上电子书、1000门以上课程会员免费看,快来领取!
  11. java 内省 反射_理解Java的反射与内省及其区别
  12. 凸优化第二章凸集 2.4广义不等式
  13. BC26低功耗的OPENCPU代码注意事项
  14. GM(1,1)灰色预测模型
  15. MATLAB必看书籍推荐
  16. 手机时钟软件推荐,创意时钟APP介绍
  17. 关于java中xml文档解析
  18. java.exe占用cpu高_Java进程cpu占用过高问题解决
  19. 13. 线性动态电路的复频域分析
  20. Linux实现ppp拨号4G模块联网全球APN之亚美尼亚(Armenian)

热门文章

  1. php禁言时间开发,一起来捉妖禁言时间介绍_教程一览
  2. java 任务链模式,flink部署运行架构
  3. 计算二叉树的叶子结点个数
  4. CART分类树算法的最优特征选择
  5. 刷新输出缓冲区(C++)
  6. python 金融可视化_Python数据分析:金融数据可视化
  7. 电脑已安装软件提取安装包_SPSS 24,软件安装包及安装教程
  8. MATLAB神经网络工具箱学习
  9. 计算机操作系统详细学习笔记(六):并发程序设计
  10. 计算机组成原理完整学习笔记(八):控制器设计