partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 59ddf6f5d2f45c05dbf3680a79adfc66dc81c62e
parent 9e60784851d5fc1e7ca26a52b717cb96098c1194
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed,  4 Nov 2015 18:54:29 +0100

Implemented get operation so that we don't get the /getImage appendix

Diffstat:
Mapp/config/config_partkeepr.yml | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/app/config/config_partkeepr.yml b/app/config/config_partkeepr.yml @@ -682,6 +682,12 @@ services: arguments: - { groups: [ "default" ] } + resource.storage_location_image.item_operation.get: + class: "Dunglas\ApiBundle\Api\Operation\Operation" + public: false + factory: [ "@api.operation_factory", "createItemOperation" ] + arguments: [ "@resource.storage_location_image", "GET" ] + resource.storage_location_image.item_operation.custom_get: class: "Dunglas\ApiBundle\Api\Operation\Operation" public: false @@ -703,7 +709,7 @@ services: tags: [ { name: "api.resource" } ] calls: - method: "initItemOperations" - arguments: [ [ "@resource.storage_location_image.item_operation.custom_get" ] ] + arguments: [ [ "@resource.storage_location_image.item_operation.get", "@resource.storage_location_image.item_operation.custom_get" ] ] - method: "initFilters" arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] - method: "initNormalizationContext"