简体   繁体   中英

How To Create API Based Web Service In Symfony2

I am trying to create a API based service using Symfony2 which is the main framework our company tends to work on. I am told to research the best way to create a web service, ie: REST, SOAP, etc. I am not a very experienced programmer. I am just trying to research the subject matter.

What we basically need is a system that would provide and API to make other apps on any platform or device. For example: I can use the Twitter API to post/fetch tweets. In the same way we are trying to create a E-comm product that would help other users to build sites and apps above the platform regardless of the programming language, device or OS.

We are trying to convert our product into an API based service from a pure "MVC application".

使用Symfony2查看本文REST API: William Durand关于设计REST API 的正确方法

我相信上面给出的答案并不是FOSRestBundle世界的介绍所以我建议这个详细的入门教程 ,介绍如何通过控制器,表单处理等易于理解的示例正确设置FOSRestBundle。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM