commit d06e8e922b85e1eb769957d6157db2cc3b33aee7
parent 1f80c0f0fff0f6befd6f58dc63cc7256a1e4e4a8
Author: Felicitus <felicitus@felicitus.org>
Date: Sat, 26 Sep 2015 19:53:27 +0200
Added GET method to force the proper IRI
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/app/config/config.yml b/app/config/config.yml
@@ -199,6 +199,12 @@ services:
arguments:
- { groups: [ "default" ] }
+ resource.footprint_image.item_operation.get:
+ class: "Dunglas\ApiBundle\Api\Operation\Operation"
+ public: false
+ factory: [ "@api.operation_factory", "createItemOperation" ]
+ arguments: [ "@resource.footprint_image", "GET" ]
+
resource.footprint_image.item_operation.custom_get:
class: "Dunglas\ApiBundle\Api\Operation\Operation"
public: false
@@ -220,7 +226,7 @@ services:
tags: [ { name: "api.resource" } ]
calls:
- method: "initItemOperations"
- arguments: [ [ "@resource.footprint_image.item_operation.custom_get" ] ]
+ arguments: [ [ "@resource.footprint_image.item_operation.get", "@resource.footprint_image.item_operation.custom_get" ] ]
- method: "initFilters"
arguments: [ [ "@doctrine_reflection_service.search_filter" ] ]
- method: "initNormalizationContext"