screeper-project/jsonapi-bundle

JsonApi support in Symfony 2

dev-master 2014-07-31 12:21 UTC

This package is not auto-updated.

Last update: 2024-04-23 05:02:48 UTC


README

DEVELOPMENT IN PROGRESS

Screeper

The JsonApi bundle add support of JsonApi (alecgorge's plugin) in symfony 2.

The github of JsonApi : https://github.com/alecgorge/jsonapi

The webpage of JsonApi : Not available

Installation

Add :

"graille-labs/screeper-jsonapi-bundle": "dev-master"

in your composer.json

Configuration

You must configure servers in the ServerBundle :

ServerBundle Page : https://github.com/graille/ServerBundle

Usage

For use, you must call the service :

$api = $this->container->get('screeper.json_api.services.api')->getApi("servername");

After that, you can use the api normally. If "servername" is empty, the default server will be used (For more informations, go to the ServerBundle page).