This a Symfony3 implementation of zandu api bundle.
ApiBundle is a projetc wich configure all default common stacks will be defini in deferents modules
Server-side, it uses FOSRestBundle as REST Api generator, JMSSerializerBundle as JSON serializer. Demo
First, install Symfony using Composer. Go to your application directory and use composer to install the bundle and its dependencies:
composer require ghostcodelover/api-bundle
Next, enable these bundles in AppKernel.php
:
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new JMS\SerializerBundle\JMSSerializerBundle(),
new FOS\RestBundle\FOSRestBundle(),
new ZND\SIM\ApiBundle\ApiBundle(),
// ...
);
}
And the routes to app/config/routing.yml
:
Dump assets if you want to use the app in prod mode:
php app/console assetic:dump --env=prod --no-debug
Done! Open http://localhost/app_dev.php/ (don't fshopet the trailing slash) in your browser and try this Symfony implementation of Api.
This bundle has been created by Mukendi Emmanuel