Skip to content

Commit

Permalink
Fix RestFul API
Browse files Browse the repository at this point in the history
  • Loading branch information
wbloszyk committed Jul 4, 2020
1 parent 934a3cf commit 7c68f8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/Resources/config/api_controllers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@
<argument type="service" id="sonata.classification.manager.category"/>
<argument type="service" id="form.factory"/>
</service>
<service id="Sonata\ClassificationBundle\Controller\Api\CategoryController" alias="sonata.classification.controller.api.category" public="true"/>
<service id="sonata.classification.controller.api.collection" class="Sonata\ClassificationBundle\Controller\Api\CollectionController">
<argument type="service" id="sonata.classification.manager.collection"/>
<argument type="service" id="form.factory"/>
</service>
<service id="Sonata\ClassificationBundle\Controller\Api\CollectionController" alias="sonata.classification.controller.api.collection" public="true"/>
<service id="sonata.classification.controller.api.tag" class="Sonata\ClassificationBundle\Controller\Api\TagController">
<argument type="service" id="sonata.classification.manager.tag"/>
<argument type="service" id="form.factory"/>
</service>
<service id="Sonata\ClassificationBundle\Controller\Api\TagController" alias="sonata.classification.controller.api.tag" public="true"/>
<service id="sonata.classification.controller.api.context" class="Sonata\ClassificationBundle\Controller\Api\ContextController">
<argument type="service" id="sonata.classification.manager.context"/>
<argument type="service" id="form.factory"/>
</service>
<service id="Sonata\ClassificationBundle\Controller\Api\ContextController" alias="sonata.classification.controller.api.context" public="true"/>
</services>
</container>
8 changes: 4 additions & 4 deletions src/Resources/config/routing/api.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<routes xmlns="http://friendsofsymfony.github.com/schema/rest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://friendsofsymfony.github.com/schema/rest https://raw.github.com/FriendsOfSymfony/FOSRestBundle/master/Resources/config/schema/routing/rest_routing-1.0.xsd">
<import type="rest" resource="sonata.classification.controller.api.category" name-prefix="sonata_api_classification_category_"/>
<import type="rest" resource="sonata.classification.controller.api.collection" name-prefix="sonata_api_classification_collection_"/>
<import type="rest" resource="sonata.classification.controller.api.tag" name-prefix="sonata_api_classification_tag_"/>
<import type="rest" resource="sonata.classification.controller.api.context" name-prefix="sonata_api_classification_context_"/>
<import type="rest" resource="Sonata\ClassificationBundle\Controller\Api\CategoryController" name-prefix="sonata_api_classification_category_"/>
<import type="rest" resource="Sonata\ClassificationBundle\Controller\Api\CollectionController" name-prefix="sonata_api_classification_collection_"/>
<import type="rest" resource="Sonata\ClassificationBundle\Controller\Api\TagController" name-prefix="sonata_api_classification_tag_"/>
<import type="rest" resource="Sonata\ClassificationBundle\Controller\Api\ContextController" name-prefix="sonata_api_classification_context_"/>
</routes>

0 comments on commit 7c68f8e

Please sign in to comment.