This bundle adds a graphql API to chameleon system
Installation:
Add this repository to your composer.json:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/bestform/ChameleonSystemGraphQLBundle.git"
}
]
Then require the dev version like this:
composer require chameleon-system/graphql-bundle@dev-master
Add this to your routing.yml
to host the api at /api
:
chameleon_system_graphql:
resource: "@ChameleonSystemGraphQLBundle/Resources/config/routing.yml"
type: yaml
Add this to your routing_dev.yml
to add graphiQL to your dev environment:
chameleon_system_graphql_dev:
resource: "@ChameleonSystemGraphQLBundle/Resources/config/routing_dev.yml"
type: yaml
Add the two needed Bundles to the production list of your AppKernel
:
<?php
new ChameleonSystem\GraphQLBundle\ChameleonSystemGraphQLBundle(),
new Overblog\GraphQLBundle\OverblogGraphQLBundle(),
Add the graphiQL Bundles to the dev list of your AppKernel
:
<?php
$bundles[] = new Overblog\GraphiQLBundle\OverblogGraphiQLBundle();