Kunwar Siddharth Singh
Kunwar Siddharth Singh

Reputation: 1676

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, i.e: 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".

Upvotes: 12

Views: 14569

Answers (3)

Sebastian
Sebastian

Reputation: 250

I believe the answers given above are not that introductory to the world of FOSRestBundle so I'd recommend this detailed getting started tutorial on how to properly setup FOSRestBundle with easy to understand examples on controllers, form processing and so on.

Upvotes: 0

HVKotak
HVKotak

Reputation: 258

Check the this article REST APIs with Symfony2: The Right Way by William Durand about Designing a REST API.

Upvotes: 13

liuggio
liuggio

Reputation: 394

I think the best repo you could look at is at:

https://github.com/lsmith77/symfony-rest-edition

this is a tutorial

http://welcometothebundle.com/symfony2-rest-api-the-best-2013-way/

Upvotes: 2

Related Questions