Skip to content

this is base bundle of all bundle in the project. its implemented only abstract methods

Notifications You must be signed in to change notification settings

ghostcodelover/ApiBundle

Repository files navigation

ZNDSIMApiBundle

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

Install

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.

Credits

This bundle has been created by Mukendi Emmanuel

About

this is base bundle of all bundle in the project. its implemented only abstract methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages