In this post to his site Jeremy Curny briefly walks you through the creation of a REST API using the Symfony 3 framework and several components/bundles to add in common functionality.
He includes the commands and dependencies you'll need to get the system set up:
- Initialize the project
- Install dependencies (including the FosRestBundle, JMSSerializerBundle and NelmioCorsBundle bundles)
- Register bundles
- Configure bundles
- Making the first route
He ends with the command to run the built-in web server and be able to test out the result. The simple action he's created can then be called using a
GET request on the
default/index route with a
200 OK response with "hello world" content.