config_partkeepr.yml (77838B)
1 services: 2 csv_responder_view_listener: 3 class: PartKeepr\ExportBundle\EventListener\CsvResponderViewListener 4 tags: 5 - { name: "kernel.event_listener", event: "kernel.view", method: "onKernelView" } 6 7 xlsx_responder_view_listener: 8 class: PartKeepr\ExportBundle\EventListener\XmlExcelResponderViewListener 9 tags: 10 - { name: "kernel.event_listener", event: "kernel.view", method: "onKernelView" } 11 12 part_image_listener: 13 class: PartKeepr\PartBundle\Listeners\ImageAttachmentListener 14 arguments: 15 - "@partkeepr_image_service" 16 tags: 17 - { name: doctrine.event_listener, event: postLoad } 18 19 partkeepr_legacy_user_provider: 20 class: PartKeepr\AuthBundle\Security\User\LegacyUserProvider 21 arguments: 22 - "@doctrine.orm.default_entity_manager" 23 24 footprint.category_path_listener: 25 class: PartKeepr\FootprintBundle\Listeners\CategoryPathListener 26 arguments: 27 - "@service_container" 28 tags: 29 - { name: doctrine.event_listener, event: onFlush } 30 31 storage_location.category_path_listener: 32 class: PartKeepr\StorageLocationBundle\Listeners\CategoryPathListener 33 arguments: 34 - "@service_container" 35 tags: 36 - { name: doctrine.event_listener, event: onFlush } 37 38 part.category_path_listener: 39 class: PartKeepr\PartBundle\Listeners\CategoryPathListener 40 arguments: 41 - "@service_container" 42 tags: 43 - { name: doctrine.event_listener, event: onFlush } 44 45 part.stock_level_listener: 46 class: PartKeepr\PartBundle\Listeners\StockLevelListener 47 arguments: 48 - "@service_container" 49 tags: 50 - { name: doctrine.event_listener, event: onFlush } 51 52 footprint_category.root_category_listener: 53 class: PartKeepr\CategoryBundle\EventListener\RootCategoryListener 54 arguments: 55 - "@service_container" 56 - "partkeepr.footprint.category_service" 57 tags: 58 - { name: doctrine.event_listener, event: onFlush } 59 60 part_category.root_category_listener: 61 class: PartKeepr\CategoryBundle\EventListener\RootCategoryListener 62 arguments: 63 - "@service_container" 64 - "partkeepr.part.category_service" 65 tags: 66 - { name: doctrine.event_listener, event: onFlush } 67 68 storage_location_category.root_category_listener: 69 class: PartKeepr\CategoryBundle\EventListener\RootCategoryListener 70 arguments: 71 - "@service_container" 72 - "partkeepr.storage_location.category_service" 73 tags: 74 - { name: doctrine.event_listener, event: onFlush } 75 76 file_removal_listener: 77 class: PartKeepr\UploadedFileBundle\EventListener\FileRemovalListener 78 arguments: 79 - "@partkeepr_uploadedfile_service" 80 - "@annotation_reader" 81 - "@property_accessor" 82 tags: 83 - { name: doctrine.event_listener, event: onFlush } 84 85 temporary_file_listener: 86 class: PartKeepr\UploadedFileBundle\EventListener\TemporaryFileEventListener 87 arguments: 88 - "@partkeepr_uploadedfile_service" 89 - "@partkeepr_image_service" 90 - "@annotation_reader" 91 - "@property_accessor" 92 - "@api.iri_converter" 93 tags: [ { name: "kernel.event_listener", event: "kernel.view", method: "replaceTemporaryFile", priority: 100 } ] 94 95 resource.distributor: 96 parent: "api.resource" 97 arguments: [ "PartKeepr\\DistributorBundle\Entity\Distributor" ] 98 tags: [ { name: "api.resource" } ] 99 calls: 100 - method: "initFilters" 101 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 102 - method: "initNormalizationContext" 103 arguments: [ { groups: [ "default" ] } ] 104 - method: "initDenormalizationContext" 105 arguments: 106 - { groups: [ "default" ] } 107 108 resource.footprint: 109 parent: "api.resource" 110 arguments: [ "PartKeepr\FootprintBundle\Entity\Footprint" ] 111 tags: [ { name: "api.resource" } ] 112 calls: 113 - method: "initFilters" 114 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 115 - method: "initNormalizationContext" 116 arguments: [ { groups: [ "default" ] } ] 117 - method: "initDenormalizationContext" 118 arguments: 119 - { groups: [ "default" ] } 120 121 resource.batchjob.item_operation.execute: 122 class: "Dunglas\ApiBundle\Api\Operation\Operation" 123 public: false 124 factory: [ "@api.operation_factory", "createItemOperation" ] 125 arguments: 126 - "@resource.batchjob" # Resource 127 - [ "PUT" ] # Methods 128 - "/batch_jobs/{id}/execute" # Path 129 - "partkeepr.batchjob.execute" # Controller 130 - "BatchJobExecute" # Route name 131 132 resource.batchjob: 133 parent: "api.resource" 134 arguments: [ 'PartKeepr\BatchJobBundle\Entity\BatchJob' ] 135 tags: [ { name: "api.resource" } ] 136 calls: 137 - method: "initFilters" 138 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 139 - method: "initNormalizationContext" 140 arguments: [ { groups: [ "default" ] } ] 141 - method: "initDenormalizationContext" 142 arguments: 143 - { groups: [ "default" ] } 144 - method: "initItemOperations" 145 arguments: [ [ "@resource.batchjob.item_operation.get", "@resource.batchjob.item_operation.put", "@resource.batchjob.item_operation.delete", "@resource.batchjob.item_operation.execute" ] ] 146 147 148 149 150 151 resource.batchjob_queryfield: 152 parent: "api.resource" 153 arguments: [ 'PartKeepr\BatchJobBundle\Entity\BatchJobQueryField' ] 154 tags: [ { name: "api.resource" } ] 155 calls: 156 - method: "initFilters" 157 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 158 - method: "initNormalizationContext" 159 arguments: [ { groups: [ "default" ] } ] 160 - method: "initDenormalizationContext" 161 arguments: 162 - { groups: [ "default" ] } 163 164 resource.batchjob_updatefield: 165 parent: "api.resource" 166 arguments: [ 'PartKeepr\BatchJobBundle\Entity\BatchJobUpdateField' ] 167 tags: [ { name: "api.resource" } ] 168 calls: 169 - method: "initFilters" 170 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 171 - method: "initNormalizationContext" 172 arguments: [ { groups: [ "default" ] } ] 173 - method: "initDenormalizationContext" 174 arguments: 175 - { groups: [ "default" ] } 176 177 178 resource.footprint_image.item_operation.get: 179 class: "Dunglas\ApiBundle\Api\Operation\Operation" 180 public: false 181 factory: [ "@api.operation_factory", "createItemOperation" ] 182 arguments: [ "@resource.footprint_image", "GET" ] 183 184 resource.footprint_image.item_operation.custom_get: 185 class: "Dunglas\ApiBundle\Api\Operation\Operation" 186 public: false 187 factory: [ "@api.operation_factory", "createItemOperation" ] 188 arguments: 189 - "@resource.footprint_image" # Resource 190 - [ "GET" ] # Methods 191 - "/footprint_images/{id}/getImage" # Path 192 - "PartKeeprFootprintBundle:FootprintImage:getImage" # Controller 193 - "FootprintImageGetImage" # Route name 194 - # Context (will be present in Hydra documentation) 195 "@type": "hydra:Operation" 196 "hydra:title": "A custom operation" 197 "returns": "xmls:string" 198 199 resource.footprint_image: 200 parent: "api.resource" 201 arguments: [ "PartKeepr\FootprintBundle\Entity\FootprintImage" ] 202 tags: [ { name: "api.resource" } ] 203 calls: 204 - method: "initItemOperations" 205 arguments: [ [ "@resource.footprint_image.item_operation.get", "@resource.footprint_image.item_operation.custom_get" ] ] 206 - method: "initFilters" 207 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 208 - method: "initNormalizationContext" 209 arguments: [ { groups: [ "default" ] } ] 210 - method: "initDenormalizationContext" 211 arguments: 212 - { groups: [ "default" ] } 213 214 resource.footprint_attachment.item_operation.custom_get: 215 class: "Dunglas\ApiBundle\Api\Operation\Operation" 216 public: false 217 factory: [ "@api.operation_factory", "createItemOperation" ] 218 arguments: 219 - "@resource.footprint_attachment" # Resource 220 - [ "GET" ] # Methods 221 - "/footprint_attachments/{id}/getFile" # Path 222 - "PartKeeprFootprintBundle:FootprintAttachment:getFile" # Controller 223 - "FootprintAttachmentGet" # Route name 224 - # Context (will be present in Hydra documentation) 225 "@type": "hydra:Operation" 226 "hydra:title": "A custom operation" 227 "returns": "xmls:string" 228 229 resource.footprint_attachment.item_operation.custom_get_mime: 230 class: "Dunglas\ApiBundle\Api\Operation\Operation" 231 public: false 232 factory: [ "@api.operation_factory", "createItemOperation" ] 233 arguments: 234 - "@resource.footprint_attachment" # Resource 235 - [ "GET" ] # Methods 236 - "/footprint_attachments/{id}/getMimeTypeIcon" # Path 237 - "PartKeeprFootprintBundle:FootprintAttachment:getMimeTypeIcon" # Controller 238 - "FootprintAttachmentMimeTypeIcon" # Route name 239 - # Context (will be present in Hydra documentation) 240 "@type": "hydra:Operation" 241 "hydra:title": "A custom operation" 242 "returns": "xmls:string" 243 244 resource.footprint_attachment.item_operation.get: 245 class: "Dunglas\ApiBundle\Api\Operation\Operation" 246 public: false 247 factory: [ "@api.operation_factory", "createItemOperation" ] 248 arguments: [ "@resource.footprint_attachment", "GET" ] 249 250 resource.footprint_attachment: 251 parent: "api.resource" 252 arguments: [ "PartKeepr\FootprintBundle\Entity\FootprintAttachment" ] 253 tags: [ { name: "api.resource" } ] 254 calls: 255 - method: "initItemOperations" 256 arguments: [ [ "@resource.footprint_attachment.item_operation.get", "@resource.footprint_attachment.item_operation.custom_get", "@resource.footprint_attachment.item_operation.custom_get_mime" ] ] 257 - method: "initFilters" 258 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 259 - method: "initNormalizationContext" 260 arguments: [ { groups: [ "default" ] } ] 261 - method: "initDenormalizationContext" 262 arguments: 263 - { groups: [ "default" ] } 264 265 resource.footprint_category.item_operation.move: 266 class: "Dunglas\ApiBundle\Api\Operation\Operation" 267 public: false 268 factory: [ "@api.operation_factory", "createItemOperation" ] 269 arguments: 270 - "@resource.footprint_category" # Resource 271 - [ "PUT" ] # Methods 272 - "/footprint_categories/{id}/move" # Path 273 - "partkeepr.category.move" # Controller 274 - "FootprintCategoryMove" # Route name 275 276 resource.footprint_category.collection_operation.get: 277 class: "Dunglas\ApiBundle\Api\Operation\Operation" 278 public: false 279 factory: [ "@api.operation_factory", "createCollectionOperation" ] 280 arguments: [ "@resource.footprint_category", "GET" ] 281 282 resource.footprint_category.collection_operation.get_root: 283 class: "Dunglas\ApiBundle\Api\Operation\Operation" 284 public: false 285 factory: [ "@api.operation_factory", "createCollectionOperation" ] 286 arguments: 287 - "@resource.footprint_category" # Resource 288 - [ "GET" ] # Methods 289 - "/footprint_categories/getExtJSRootNode" # Path 290 - "partkeepr.category.get_root_node" # Controller 291 - "PartKeeprFootprintCategoryGetRootNode" 292 293 resource.footprint_category.item_operation.get: 294 class: "Dunglas\ApiBundle\Api\Operation\Operation" 295 public: false 296 factory: [ "@api.operation_factory", "createItemOperation" ] 297 arguments: [ "@resource.footprint_category", "GET" ] 298 299 resource.footprint_category.item_operation.put: 300 class: "Dunglas\ApiBundle\Api\Operation\Operation" 301 public: false 302 factory: [ "@api.operation_factory", "createItemOperation" ] 303 arguments: [ "@resource.footprint_category", "PUT" ] 304 305 resource.footprint_category.item_operation.delete: 306 class: "Dunglas\ApiBundle\Api\Operation\Operation" 307 public: false 308 factory: [ "@api.operation_factory", "createItemOperation" ] 309 arguments: [ "@resource.footprint_category", "DELETE" ] 310 311 resource.footprint_category: 312 parent: "api.resource" 313 arguments: [ "PartKeepr\FootprintBundle\Entity\FootprintCategory" ] 314 tags: [ { name: "api.resource" } ] 315 calls: 316 - method: "initCollectionOperations" 317 arguments: [ [ "@resource.footprint_category.collection_operation.get", "@resource.footprint_category.collection_operation.get_root", "@resource.footprint_category.collection_operation.post" ] ] 318 - method: "initItemOperations" 319 arguments: [ [ "@resource.footprint_category.item_operation.get", "@resource.footprint_category.item_operation.put", "@resource.footprint_category.item_operation.delete", "@resource.footprint_category.item_operation.move" ] ] 320 - method: "initNormalizationContext" 321 arguments: [ { groups: [ "default", "tree" ] } ] 322 - method: "initDenormalizationContext" 323 arguments: 324 - { groups: [ "default", "tree" ] } 325 326 resource.import_preset: 327 parent: "api.resource" 328 arguments: [ "PartKeepr\ImportBundle\Entity\ImportPreset" ] 329 tags: [ { name: "api.resource" } ] 330 calls: 331 - method: "initFilters" 332 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 333 - method: "initNormalizationContext" 334 arguments: [ { groups: [ "default" ] } ] 335 - method: "initDenormalizationContext" 336 arguments: 337 - { groups: [ "default" ] } 338 339 resource.grid_preset.item_operation.get: 340 class: "Dunglas\ApiBundle\Api\Operation\Operation" 341 public: false 342 factory: [ "@api.operation_factory", "createItemOperation" ] 343 arguments: [ "@resource.grid_preset", "GET" ] 344 345 resource.grid_preset.item_operation.put: 346 class: "Dunglas\ApiBundle\Api\Operation\Operation" 347 public: false 348 factory: [ "@api.operation_factory", "createItemOperation" ] 349 arguments: [ "@resource.grid_preset", "PUT" ] 350 351 resource.grid_preset.item_operation.delete: 352 class: "Dunglas\ApiBundle\Api\Operation\Operation" 353 public: false 354 factory: [ "@api.operation_factory", "createItemOperation" ] 355 arguments: [ "@resource.grid_preset", "DELETE" ] 356 357 resource.grid_preset.item_operation.markAsDefault: 358 class: "Dunglas\ApiBundle\Api\Operation\Operation" 359 public: false 360 factory: [ "@api.operation_factory", "createItemOperation" ] 361 arguments: 362 - "@resource.grid_preset" # Resource 363 - [ "PUT" ] # Methods 364 - "/grid_presets/{id}/markAsDefault" # Path 365 - "partkeepr.grid_preset.mark_as_default" # Controller 366 - "MarkGridPresetAsDefault" # Route name 367 368 resource.grid_preset: 369 parent: "api.resource" 370 arguments: [ "PartKeepr\FrontendBundle\Entity\GridPreset" ] 371 tags: [ { name: "api.resource" } ] 372 calls: 373 - method: "initItemOperations" 374 arguments: [ [ "@resource.grid_preset.item_operation.get", "@resource.grid_preset.item_operation.put", "@resource.grid_preset.item_operation.delete", "@resource.grid_preset.item_operation.markAsDefault" ] ] 375 - method: "initFilters" 376 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 377 - method: "initNormalizationContext" 378 arguments: [ { groups: [ "default" ] } ] 379 - method: "initDenormalizationContext" 380 arguments: 381 - { groups: [ "default" ] } 382 383 resource.part.collection_operation.custom_post: 384 class: "Dunglas\ApiBundle\Api\Operation\Operation" 385 public: false 386 factory: [ "@api.operation_factory", "createCollectionOperation" ] 387 arguments: 388 - "@resource.part" 389 - [ "POST" ] 390 - "/parts" 391 - "partkeepr.part.post" 392 - "PartPost" 393 394 resource.part.collection_operation.custom_get: 395 class: "Dunglas\ApiBundle\Api\Operation\Operation" 396 public: false 397 factory: [ "@api.operation_factory", "createCollectionOperation" ] 398 arguments: 399 - "@resource.part" 400 - [ "GET" ] 401 - "/parts" 402 - "partkeepr.parts.collection_get" 403 - "PartsGet" 404 405 resource.part.item_operation.get: 406 class: "Dunglas\ApiBundle\Api\Operation\Operation" 407 public: false 408 factory: [ "@api.operation_factory", "createItemOperation" ] 409 arguments: [ "@resource.part", "GET" ] 410 411 resource.part.item_operation.custom_put: 412 class: "Dunglas\ApiBundle\Api\Operation\Operation" 413 public: false 414 factory: [ "@api.operation_factory", "createItemOperation" ] 415 arguments: 416 - "@resource.part" 417 - [ "PUT" ] 418 - "/parts/{id}" 419 - "partkeepr.part.put" 420 - "PartPut" 421 422 423 resource.part.item_operation.delete: 424 class: "Dunglas\ApiBundle\Api\Operation\Operation" 425 public: false 426 factory: [ "@api.operation_factory", "createItemOperation" ] 427 arguments: [ "@resource.part", "DELETE" ] 428 429 resource.part.item_operation.add_stock: 430 class: "Dunglas\ApiBundle\Api\Operation\Operation" 431 public: false 432 factory: [ "@api.operation_factory", "createItemOperation" ] 433 arguments: 434 - "@resource.part" # Resource 435 - [ "PUT" ] # Methods 436 - "/parts/{id}/addStock" # Path 437 - "partkeepr.part.add_stock" # Controller 438 - "PartAddStock" # Route name 439 440 resource.part.item_operation.remove_stock: 441 class: "Dunglas\ApiBundle\Api\Operation\Operation" 442 public: false 443 factory: [ "@api.operation_factory", "createItemOperation" ] 444 arguments: 445 - "@resource.part" # Resource 446 - [ "PUT" ] # Methods 447 - "/parts/{id}/removeStock" # Path 448 - "partkeepr.part.remove_stock" # Controller 449 - "PartRemoveStock" # Route name 450 451 resource.part.item_operation.set_stock: 452 class: "Dunglas\ApiBundle\Api\Operation\Operation" 453 public: false 454 factory: [ "@api.operation_factory", "createItemOperation" ] 455 arguments: 456 - "@resource.part" # Resource 457 - [ "PUT" ] # Methods 458 - "/parts/{id}/setStock" # Path 459 - "partkeepr.part.set_stock" # Controller 460 - "PartSetStock" # Route name 461 462 resource.part: 463 parent: "api.resource" 464 arguments: [ "PartKeepr\\PartBundle\\Entity\\Part" ] 465 tags: [ { name: "api.resource" } ] 466 calls: 467 - method: "initItemOperations" 468 arguments: [ [ "@resource.part.item_operation.get", "@resource.part.item_operation.custom_put", "@resource.part.item_operation.delete", "@resource.part.item_operation.add_stock", "@resource.part.item_operation.remove_stock", "@resource.part.item_operation.set_stock" ] ] 469 - method: "initCollectionOperations" 470 arguments: [ [ "@resource.part.collection_operation.custom_get", "@resource.part.collection_operation.custom_post" ] ] 471 - method: "initFilters" 472 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 473 - method: "initNormalizationContext" 474 arguments: [ { groups: [ "default", "readonly" ] } ] 475 - method: "initDenormalizationContext" 476 arguments: 477 - { groups: [ "default", "stock" ] } 478 479 resource.part_attachment.item_operation.custom_get_image: 480 class: "Dunglas\ApiBundle\Api\Operation\Operation" 481 public: false 482 factory: [ "@api.operation_factory", "createItemOperation" ] 483 arguments: 484 - "@resource.part_attachment" # Resource 485 - [ "GET" ] # Methods 486 - "/part_attachments/{id}/getImage" # Path 487 - "PartKeeprPartBundle:PartAttachment:getImage" # Controller 488 - "PartAttachmentGetImage" # Route name 489 - # Context (will be present in Hydra documentation) 490 "@type": "hydra:Operation" 491 "hydra:title": "A custom operation" 492 "returns": "xmls:string" 493 494 resource.part_attachment.item_operation.custom_get: 495 class: "Dunglas\ApiBundle\Api\Operation\Operation" 496 public: false 497 factory: [ "@api.operation_factory", "createItemOperation" ] 498 arguments: 499 - "@resource.part_attachment" # Resource 500 - [ "GET" ] # Methods 501 - "/part_attachments/{id}/getFile" # Path 502 - "PartKeeprPartBundle:PartAttachment:getFile" # Controller 503 - "PartAttachmentGet" # Route name 504 - # Context (will be present in Hydra documentation) 505 "@type": "hydra:Operation" 506 "hydra:title": "A custom operation" 507 "returns": "xmls:string" 508 509 resource.part_attachment.item_operation.custom_get_mime: 510 class: "Dunglas\ApiBundle\Api\Operation\Operation" 511 public: false 512 factory: [ "@api.operation_factory", "createItemOperation" ] 513 arguments: 514 - "@resource.part_attachment" # Resource 515 - [ "GET" ] # Methods 516 - "/part_attachments/{id}/getMimeTypeIcon" # Path 517 - "PartKeeprPartBundle:PartAttachment:getMimeTypeIcon" # Controller 518 - "PartAttachmentMimeTypeIcon" # Route name 519 - # Context (will be present in Hydra documentation) 520 "@type": "hydra:Operation" 521 "hydra:title": "A custom operation" 522 "returns": "xmls:string" 523 524 resource.part_attachment.item_operation.get: 525 class: "Dunglas\ApiBundle\Api\Operation\Operation" 526 public: false 527 factory: [ "@api.operation_factory", "createItemOperation" ] 528 arguments: [ "@resource.part_attachment", "GET" ] 529 530 resource.part_attachment: 531 parent: "api.resource" 532 arguments: [ "PartKeepr\\PartBundle\\Entity\\PartAttachment" ] 533 tags: [ { name: "api.resource" } ] 534 calls: 535 - method: "initItemOperations" 536 arguments: [ [ "@resource.part_attachment.item_operation.get", "@resource.part_attachment.item_operation.custom_get", "@resource.part_attachment.item_operation.custom_get_mime", "@resource.part_attachment.item_operation.custom_get_image" ] ] 537 - method: "initFilters" 538 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 539 - method: "initNormalizationContext" 540 arguments: [ { groups: [ "default" ] } ] 541 - method: "initDenormalizationContext" 542 arguments: 543 - { groups: [ "default" ] } 544 545 resource.part_category.item_operation.move: 546 class: "Dunglas\ApiBundle\Api\Operation\Operation" 547 public: false 548 factory: [ "@api.operation_factory", "createItemOperation" ] 549 arguments: 550 - "@resource.part_category" # Resource 551 - [ "PUT" ] # Methods 552 - "/part_categories/{id}/move" # Path 553 - "partkeepr.category.move" # Controller 554 - "PartKeeprPartCategoryMove" 555 556 resource.part_category.collection_operation.get_root: 557 class: "Dunglas\ApiBundle\Api\Operation\Operation" 558 public: false 559 factory: [ "@api.operation_factory", "createCollectionOperation" ] 560 arguments: 561 - "@resource.part_category" # Resource 562 - [ "GET" ] # Methods 563 - "/part_categories/getExtJSRootNode" # Path 564 - "partkeepr.category.get_root_node" # Controller 565 - "PartKeeprPartCategoryGetRootNode" 566 567 resource.part_category.item_operation.get: 568 class: "Dunglas\ApiBundle\Api\Operation\Operation" 569 public: false 570 factory: [ "@api.operation_factory", "createItemOperation" ] 571 arguments: [ "@resource.part_category", "GET" ] 572 573 resource.part_category.item_operation.put: 574 class: "Dunglas\ApiBundle\Api\Operation\Operation" 575 public: false 576 factory: [ "@api.operation_factory", "createItemOperation" ] 577 arguments: [ "@resource.part_category", "PUT" ] 578 579 resource.part_category.item_operation.delete: 580 class: "Dunglas\ApiBundle\Api\Operation\Operation" 581 public: false 582 factory: [ "@api.operation_factory", "createItemOperation" ] 583 arguments: [ "@resource.part_category", "DELETE" ] 584 585 resource.part_category: 586 parent: "api.resource" 587 arguments: [ "PartKeepr\\PartBundle\Entity\\PartCategory" ] 588 tags: [ { name: "api.resource" } ] 589 calls: 590 - method: "initCollectionOperations" 591 arguments: [ [ "@resource.part_category.collection_operation.get", "@resource.part_category.collection_operation.get_root", "@resource.part_category.collection_operation.post" ] ] 592 - method: "initItemOperations" 593 arguments: [ [ "@resource.part_category.item_operation.get", "@resource.part_category.item_operation.put", "@resource.part_category.item_operation.delete", "@resource.part_category.item_operation.move" ] ] 594 - method: "initNormalizationContext" 595 arguments: [ { groups: [ "default", "tree" ] } ] 596 - method: "initDenormalizationContext" 597 arguments: 598 - { groups: [ "default", "tree" ] } 599 600 resource.part_distributor: 601 parent: "api.resource" 602 arguments: [ "PartKeepr\\PartBundle\\Entity\\PartDistributor" ] 603 tags: [ { name: "api.resource" } ] 604 calls: 605 - method: "initNormalizationContext" 606 arguments: [ { groups: [ "default" ] } ] 607 - method: "initDenormalizationContext" 608 arguments: 609 - { groups: [ "default" ] } 610 611 resource.part_manufacturer: 612 parent: "api.resource" 613 arguments: [ "PartKeepr\\PartBundle\\Entity\\PartManufacturer" ] 614 tags: [ { name: "api.resource" } ] 615 calls: 616 - method: "initNormalizationContext" 617 arguments: [ { groups: [ "default" ] } ] 618 - method: "initDenormalizationContext" 619 arguments: 620 - { groups: [ "default" ] } 621 622 resource.part_parameter: 623 parent: "api.resource" 624 arguments: [ "PartKeepr\\PartBundle\\Entity\\PartParameter" ] 625 tags: [ { name: "api.resource" } ] 626 calls: 627 - method: "initNormalizationContext" 628 arguments: [ { groups: [ "default" ] } ] 629 - method: "initDenormalizationContext" 630 arguments: 631 - { groups: [ "default" ] } 632 633 resource.meta_part_parameter_criteria: 634 parent: "api.resource" 635 arguments: [ "PartKeepr\\PartBundle\\Entity\\MetaPartParameterCriteria" ] 636 tags: [ { name: "api.resource" } ] 637 calls: 638 - method: "initNormalizationContext" 639 arguments: [ { groups: [ "default" ] } ] 640 - method: "initDenormalizationContext" 641 arguments: 642 - { groups: [ "default" ] } 643 644 resource.manufacturer: 645 parent: "api.resource" 646 arguments: [ "PartKeepr\\ManufacturerBundle\\Entity\\Manufacturer" ] 647 tags: [ { name: "api.resource" } ] 648 calls: 649 - method: "initFilters" 650 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 651 - method: "initNormalizationContext" 652 arguments: [ { groups: [ "default" ] } ] 653 - method: "initDenormalizationContext" 654 arguments: 655 - { groups: [ "default" ] } 656 657 resource.manufacturer_ic_logo.item_operation.custom_get: 658 class: "Dunglas\ApiBundle\Api\Operation\Operation" 659 public: false 660 factory: [ "@api.operation_factory", "createItemOperation" ] 661 arguments: 662 - "@resource.manufacturer_ic_logo" # Resource 663 - [ "GET" ] # Methods 664 - "/manufacturer_i_c_logos/{id}/getImage" # Path 665 - "PartKeeprManufacturerBundle:ManufacturerIcLogo:getImage" # Controller 666 - "ManufacturerIcLogoGetImage" # Route name 667 - # Context (will be present in Hydra documentation) 668 "@type": "hydra:Operation" 669 "hydra:title": "A custom operation" 670 "returns": "xmls:string" 671 672 resource.manufacturer_ic_logo.item_operation.get: 673 class: "Dunglas\ApiBundle\Api\Operation\Operation" 674 public: false 675 factory: [ "@api.operation_factory", "createItemOperation" ] 676 arguments: [ "@resource.manufacturer_ic_logo", "GET" ] 677 678 resource.manufacturer_ic_logo.item_operation.put: 679 class: "Dunglas\ApiBundle\Api\Operation\Operation" 680 public: false 681 factory: [ "@api.operation_factory", "createItemOperation" ] 682 arguments: [ "@resource.manufacturer_ic_logo", "PUT" ] 683 684 resource.manufacturer_ic_logo: 685 parent: "api.resource" 686 arguments: [ "PartKeepr\\ManufacturerBundle\Entity\ManufacturerICLogo" ] 687 tags: [ { name: "api.resource" } ] 688 calls: 689 - method: "initItemOperations" 690 arguments: [ [ "@resource.manufacturer_ic_logo.item_operation.get", "@resource.manufacturer_ic_logo.item_operation.put", "@resource.manufacturer_ic_logo.item_operation.custom_get" ] ] 691 - method: "initFilters" 692 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 693 - method: "initNormalizationContext" 694 arguments: [ { groups: [ "default" ] } ] 695 - method: "initDenormalizationContext" 696 arguments: 697 - { groups: [ "default" ] } 698 699 resource.partmeasurementunit.item_operation.custom_put: 700 class: "Dunglas\ApiBundle\Api\Operation\Operation" 701 public: false 702 factory: [ "@api.operation_factory", "createItemOperation" ] 703 arguments: 704 - "@resource.partmeasurementunit" # Resource 705 - [ "PUT" ] # Methods 706 - "/part_measurement_units/{id}/setDefault" # Path 707 - "partkeepr.part_measurement_unit.set_default" # Controller 708 - "PartMeasurementUnitSetDefault" # Route name 709 - # Context (will be present in Hydra documentation) 710 "@type": "hydra:Operation" 711 "hydra:title": "A custom operation" 712 "returns": "xmls:string" 713 714 resource.partmeasurementunit.item_operation.get: 715 class: "Dunglas\ApiBundle\Api\Operation\Operation" 716 public: false 717 factory: [ "@api.operation_factory", "createItemOperation" ] 718 arguments: [ "@resource.partmeasurementunit", "GET" ] 719 720 resource.partmeasurementunit.item_operation.put: 721 class: "Dunglas\ApiBundle\Api\Operation\Operation" 722 public: false 723 factory: [ "@api.operation_factory", "createItemOperation" ] 724 arguments: [ "@resource.partmeasurementunit", "PUT" ] 725 726 resource.partmeasurementunit: 727 parent: "api.resource" 728 arguments: [ "PartKeepr\\PartBundle\\Entity\\PartMeasurementUnit" ] 729 tags: [ { name: "api.resource" } ] 730 calls: 731 - method: "initItemOperations" 732 arguments: [ [ "@resource.partmeasurementunit.item_operation.custom_put", "@resource.partmeasurementunit.item_operation.get", "@resource.partmeasurementunit.item_operation.put" ] ] 733 - method: "initFilters" 734 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 735 - method: "initNormalizationContext" 736 arguments: [ { groups: [ "default" ] } ] 737 - method: "initDenormalizationContext" 738 arguments: 739 - { groups: [ "default" ] } 740 741 742 resource.unit: 743 parent: "api.resource" 744 arguments: [ "PartKeepr\\UnitBundle\\Entity\\Unit" ] 745 tags: [ { name: "api.resource" } ] 746 calls: 747 - method: "initFilters" 748 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 749 - method: "initNormalizationContext" 750 arguments: [ { groups: [ "default" ] } ] 751 - method: "initDenormalizationContext" 752 arguments: 753 - { groups: [ "default" ] } 754 755 resource.siprefix: 756 parent: "api.resource" 757 arguments: [ "PartKeepr\\SiPrefixBundle\\Entity\\SiPrefix" ] 758 tags: [ { name: "api.resource" } ] 759 calls: 760 - method: "initFilters" 761 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 762 - method: "initNormalizationContext" 763 arguments: [ { groups: [ "default" ] } ] 764 - method: "initDenormalizationContext" 765 arguments: 766 - { groups: [ "default" ] } 767 768 # ######################## Storage Location Categories###################################### 769 resource.storage_location: 770 parent: "api.resource" 771 arguments: [ "PartKeepr\StorageLocationBundle\Entity\StorageLocation" ] 772 tags: [ { name: "api.resource" } ] 773 calls: 774 - method: "initFilters" 775 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 776 - method: "initNormalizationContext" 777 arguments: [ { groups: [ "default" ] } ] 778 - method: "initDenormalizationContext" 779 arguments: 780 - { groups: [ "default" ] } 781 782 resource.stock_entry: 783 parent: "api.resource" 784 arguments: [ "PartKeepr\StockBundle\Entity\StockEntry" ] 785 tags: [ { name: "api.resource" } ] 786 calls: 787 - method: "initFilters" 788 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 789 - method: "initNormalizationContext" 790 arguments: [ { groups: [ "default" ] } ] 791 - method: "initDenormalizationContext" 792 arguments: 793 - { groups: [ "default" ] } 794 795 # ######################## Storage Location Categories###################################### 796 797 resource.storage_location_category.item_operation.move: 798 class: "Dunglas\ApiBundle\Api\Operation\Operation" 799 public: false 800 factory: [ "@api.operation_factory", "createItemOperation" ] 801 arguments: 802 - "@resource.storage_location_category" # Resource 803 - [ "PUT" ] # Methods 804 - "/storage_location_categories/{id}/move" # Path 805 - "partkeepr.category.move" # Controller 806 - "StorageLocationCategoryMove" # Route name 807 808 resource.storage_location_category.collection_operation.get_root: 809 class: "Dunglas\ApiBundle\Api\Operation\Operation" 810 public: false 811 factory: [ "@api.operation_factory", "createCollectionOperation" ] 812 arguments: 813 - "@resource.storage_location_category" # Resource 814 - [ "GET" ] # Methods 815 - "/storage_location_categories/getExtJSRootNode" # Path 816 - "partkeepr.category.get_root_node" # Controller 817 - "StorageLocationCategoryGetRoot" # Route name 818 819 resource.storage_location_category.item_operation.get: 820 class: "Dunglas\ApiBundle\Api\Operation\Operation" 821 public: false 822 factory: [ "@api.operation_factory", "createItemOperation" ] 823 arguments: [ "@resource.storage_location_category", "GET" ] 824 825 resource.storage_location_category.item_operation.put: 826 class: "Dunglas\ApiBundle\Api\Operation\Operation" 827 public: false 828 factory: [ "@api.operation_factory", "createItemOperation" ] 829 arguments: [ "@resource.storage_location_category", "PUT" ] 830 831 resource.storage_location_category.item_operation.delete: 832 class: "Dunglas\ApiBundle\Api\Operation\Operation" 833 public: false 834 factory: [ "@api.operation_factory", "createItemOperation" ] 835 arguments: [ "@resource.storage_location_category", "DELETE" ] 836 837 resource.storage_location_category.collection_operation.post: 838 class: "Dunglas\ApiBundle\Api\Operation\Operation" 839 public: false 840 factory: [ "@api.operation_factory", "createCollectionOperation" ] 841 arguments: [ "@resource.storage_location_category", "POST" ] 842 843 resource.storage_location_category: 844 parent: "api.resource" 845 arguments: [ "PartKeepr\StorageLocationBundle\Entity\StorageLocationCategory" ] 846 tags: [ { name: "api.resource" } ] 847 calls: 848 - method: "initCollectionOperations" 849 arguments: [ [ "@resource.storage_location_category.collection_operation.get", "@resource.storage_location_category.collection_operation.get_root", "@resource.storage_location_category.collection_operation.post" ] ] 850 - method: "initItemOperations" 851 arguments: [ [ "@resource.storage_location_category.item_operation.get", "@resource.storage_location_category.item_operation.put", "@resource.storage_location_category.item_operation.delete", "@resource.storage_location_category.item_operation.move" ] ] 852 - method: "initNormalizationContext" 853 arguments: [ { groups: [ "default", "tree" ] } ] 854 - method: "initDenormalizationContext" 855 arguments: 856 - { groups: [ "default", "tree" ] } 857 858 resource.storage_location_image.item_operation.get: 859 class: "Dunglas\ApiBundle\Api\Operation\Operation" 860 public: false 861 factory: [ "@api.operation_factory", "createItemOperation" ] 862 arguments: [ "@resource.storage_location_image", "GET" ] 863 864 resource.storage_location_image.item_operation.custom_get: 865 class: "Dunglas\ApiBundle\Api\Operation\Operation" 866 public: false 867 factory: [ "@api.operation_factory", "createItemOperation" ] 868 arguments: 869 - "@resource.storage_location_image" # Resource 870 - [ "GET" ] # Methods 871 - "/storage_location_images/{id}/getImage" # Path 872 - "PartKeeprStorageLocationBundle:StorageLocationImage:getImage" # Controller 873 - "StorageLocationGetImage" # Route name 874 - # Context (will be present in Hydra documentation) 875 "@type": "hydra:Operation" 876 "hydra:title": "A custom operation" 877 "returns": "xmls:string" 878 879 resource.storage_location_image: 880 parent: "api.resource" 881 arguments: [ "PartKeepr\StorageLocationBundle\Entity\StorageLocationImage" ] 882 tags: [ { name: "api.resource" } ] 883 calls: 884 - method: "initItemOperations" 885 arguments: [ [ "@resource.storage_location_image.item_operation.get", "@resource.storage_location_image.item_operation.custom_get" ] ] 886 - method: "initFilters" 887 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 888 - method: "initNormalizationContext" 889 arguments: [ { groups: [ "default" ] } ] 890 - method: "initDenormalizationContext" 891 arguments: 892 - { groups: [ "default" ] } 893 894 # ######################## Temporary Images ###################################### 895 resource.tempimage.item_operation.get: 896 class: "Dunglas\ApiBundle\Api\Operation\Operation" 897 public: false 898 factory: [ "@api.operation_factory", "createItemOperation" ] 899 arguments: [ "@resource.tempimage", "GET" ] 900 901 resource.tempimage.collection_operation.custom_post: 902 class: "Dunglas\ApiBundle\Api\Operation\Operation" 903 public: false 904 factory: [ "@api.operation_factory", "createCollectionOperation" ] 905 arguments: 906 - "@resource.tempimage" # Resource 907 - [ "POST" ] # Methods 908 - "/temp_images/upload" # Path 909 - "PartKeeprImageBundle:TemporaryImage:upload" # Controller 910 - "TemporaryImageUpload" # Route name 911 - # Context (will be present in Hydra documentation) 912 "@type": "hydra:Operation" 913 "hydra:title": "A custom operation" 914 "returns": "xmls:string" 915 916 resource.tempimage.collection_operation.custom_post_webcam: 917 class: "Dunglas\ApiBundle\Api\Operation\Operation" 918 public: false 919 factory: [ "@api.operation_factory", "createCollectionOperation" ] 920 arguments: 921 - "@resource.tempimage" # Resource 922 - [ "POST" ] # Methods 923 - "/temp_images/webcamUpload" # Path 924 - "PartKeeprImageBundle:TemporaryImage:webcamUpload" # Controller 925 - "TemporaryImageUploadWebcam" # Route name 926 - # Context (will be present in Hydra documentation) 927 "@type": "hydra:Operation" 928 "hydra:title": "A custom operation" 929 "returns": "xmls:string" 930 931 resource.tempimage.item_operation.custom_get: 932 class: "Dunglas\ApiBundle\Api\Operation\Operation" 933 public: false 934 factory: [ "@api.operation_factory", "createItemOperation" ] 935 arguments: 936 - "@resource.tempimage" # Resource 937 - [ "GET" ] # Methods 938 - "/temp_images/{id}/getImage" # Path 939 - "PartKeeprImageBundle:TemporaryImage:getImage" # Controller 940 - "TemporaryImageGet" # Route name 941 - # Context (will be present in Hydra documentation) 942 "@type": "hydra:Operation" 943 "hydra:title": "A custom operation" 944 "returns": "xmls:string" 945 946 resource.tempimage: 947 parent: "api.resource" 948 arguments: [ "PartKeepr\\ImageBundle\\Entity\\TempImage" ] 949 tags: [ { name: "api.resource" } ] 950 calls: 951 - method: "initCollectionOperations" 952 arguments: [ [ "@resource.tempimage.collection_operation.custom_post", "@resource.tempimage.collection_operation.custom_post_webcam" ] ] 953 - method: "initItemOperations" 954 arguments: [ [ "@resource.tempimage.item_operation.get", "@resource.tempimage.item_operation.custom_get" ] ] 955 956 resource.tempfile.collection_operation.custom_post: 957 class: "Dunglas\ApiBundle\Api\Operation\Operation" 958 public: false 959 factory: [ "@api.operation_factory", "createCollectionOperation" ] 960 arguments: 961 - "@resource.tempfile" # Resource 962 - [ "POST" ] # Methods 963 - "/temp_uploaded_files/upload" # Path 964 - "PartKeeprUploadedFileBundle:TemporaryFile:upload" # Controller 965 - "TemporaryFileUpload" # Route name 966 - # Context (will be present in Hydra documentation) 967 "@type": "hydra:Operation" 968 "hydra:title": "A custom operation" 969 "returns": "xmls:string" 970 971 resource.tempfile.collection_operation.custom_post_webcam: 972 class: "Dunglas\ApiBundle\Api\Operation\Operation" 973 public: false 974 factory: [ "@api.operation_factory", "createCollectionOperation" ] 975 arguments: 976 - "@resource.tempfile" # Resource 977 - [ "POST" ] # Methods 978 - "/temp_uploaded_files/webcamUpload" # Path 979 - "PartKeeprUploadedFileBundle:TemporaryFile:webcamUpload" # Controller 980 - "TemporaryFileUploadWebcam" # Route name 981 - # Context (will be present in Hydra documentation) 982 "@type": "hydra:Operation" 983 "hydra:title": "A custom operation" 984 "returns": "xmls:string" 985 986 resource.tempfile.item_operation.get: 987 class: "Dunglas\ApiBundle\Api\Operation\Operation" 988 public: false 989 factory: [ "@api.operation_factory", "createItemOperation" ] 990 arguments: [ "@resource.tempfile", "GET" ] 991 992 resource.tempfile.item_operation.custom_get: 993 class: "Dunglas\ApiBundle\Api\Operation\Operation" 994 public: false 995 factory: [ "@api.operation_factory", "createItemOperation" ] 996 arguments: 997 - "@resource.tempfile" # Resource 998 - [ "GET" ] # Methods 999 - "/temp_uploaded_files/{id}/getFile" # Path 1000 - "PartKeeprUploadedFileBundle:TemporaryFile:getFile" # Controller 1001 - "TemporaryFileGet" # Route name 1002 - # Context (will be present in Hydra documentation) 1003 "@type": "hydra:Operation" 1004 "hydra:title": "A custom operation" 1005 "returns": "xmls:string" 1006 1007 resource.tempfile.item_operation.custom_get_mimetype: 1008 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1009 public: false 1010 factory: [ "@api.operation_factory", "createItemOperation" ] 1011 arguments: 1012 - "@resource.tempfile" # Resource 1013 - [ "GET" ] # Methods 1014 - "/temp_uploaded_files/{id}/getMimeTypeIcon" # Path 1015 - "PartKeeprUploadedFileBundle:TemporaryFile:getMimeTypeIcon" # Controller 1016 - "TemporaryFileGetMimeTypeIcon" # Route name 1017 - # Context (will be present in Hydra documentation) 1018 "@type": "hydra:Operation" 1019 "hydra:title": "A custom operation" 1020 "returns": "xmls:string" 1021 1022 resource.tempfile: 1023 parent: "api.resource" 1024 arguments: [ "PartKeepr\\UploadedFileBundle\\Entity\\TempUploadedFile" ] 1025 tags: [ { name: "api.resource" } ] 1026 calls: 1027 - method: "initCollectionOperations" 1028 arguments: [ [ "@resource.tempfile.collection_operation.custom_post" ] ] 1029 - method: "initItemOperations" 1030 arguments: [ [ "@resource.tempfile.item_operation.get", "@resource.tempfile.item_operation.custom_get", "@resource.tempfile.item_operation.custom_get_mimetype", "@resource.tempfile.collection_operation.custom_post_webcam" ] ] 1031 1032 resource.tip_of_the_day.item_operation.get: 1033 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1034 public: false 1035 factory: [ "@api.operation_factory", "createItemOperation" ] 1036 arguments: [ "@resource.tip_of_the_day", "GET" ] 1037 1038 resource.tip_of_the_day.item_operation.mark_read: 1039 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1040 public: false 1041 factory: [ "@api.operation_factory", "createItemOperation" ] 1042 arguments: 1043 - "@resource.tip_of_the_day" 1044 - "PUT" 1045 - "/tip_of_the_days/{id}/markTipRead" 1046 - "partkeepr.tip_of_the_day.mark_read" 1047 - "TipMarkRead" 1048 1049 1050 resource.tip_of_the_day.collection_operation.get: 1051 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1052 public: false 1053 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1054 arguments: [ "@resource.tip_of_the_day", "GET" ] 1055 1056 resource.tip_of_the_day.collection_operation.post: 1057 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1058 public: false 1059 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1060 arguments: [ "@resource.tip_of_the_day", "POST" ] 1061 1062 resource.tip_of_the_day.collection_operation.mark_all_unread: 1063 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1064 public: false 1065 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1066 arguments: 1067 - "@resource.tip_of_the_day" 1068 - [ "POST" ] 1069 - "/tip_of_the_days/markAllTipsAsUnread" 1070 - "partkeepr.tip_of_the_day.mark_all_unread" 1071 - "TipMarkAllUnrad" 1072 1073 resource.tip_of_the_day: 1074 parent: "api.resource" 1075 arguments: [ "PartKeepr\\TipOfTheDayBundle\\Entity\\TipOfTheDay" ] 1076 tags: [ { name: "api.resource" } ] 1077 calls: 1078 - method: "initFilters" 1079 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1080 - method: "initNormalizationContext" 1081 arguments: [ { groups: [ "default" ] } ] 1082 - method: "initCollectionOperations" 1083 arguments: [ [ "@resource.tip_of_the_day.collection_operation.get", "@resource.tip_of_the_day.collection_operation.post", "@resource.tip_of_the_day.collection_operation.mark_all_unread" ] ] 1084 - method: "initItemOperations" 1085 arguments: [ [ "@resource.tip_of_the_day.item_operation.get", "@resource.tip_of_the_day.item_operation.mark_read" ] ] 1086 - method: "initDenormalizationContext" 1087 arguments: 1088 - { groups: [ "default" ] } 1089 1090 resource.tip_of_the_day_history.collection_operation.custom_get: 1091 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1092 public: false 1093 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1094 arguments: 1095 - "@resource.tip_of_the_day_history" 1096 - [ "GET" ] 1097 - "/tip_of_the_day_histories" 1098 - "partkeepr.tip_of_the_day_history.collection_get" 1099 - "TipHistoriesGet" 1100 1101 resource.tip_of_the_day_history: 1102 parent: "api.resource" 1103 arguments: [ "PartKeepr\\TipOfTheDayBundle\\Entity\\TipOfTheDayHistory" ] 1104 tags: [ { name: "api.resource" } ] 1105 calls: 1106 - method: "initFilters" 1107 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1108 - method: "initCollectionOperations" 1109 arguments: [ [ "@resource.tip_of_the_day_history.collection_operation.custom_get" ] ] 1110 - method: "initNormalizationContext" 1111 arguments: [ { groups: [ "default" ] } ] 1112 - method: "initDenormalizationContext" 1113 arguments: 1114 - { groups: [ "default" ] } 1115 1116 resource.user.item_operation.get_preferences: 1117 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1118 public: false 1119 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1120 arguments: 1121 - "@resource.user" # Resource 1122 - [ "GET" ] # Methods 1123 - "/user_preferences" # Path 1124 - "partkeepr.user_preference.get_preferences" # Controller 1125 - "PartKeeprUserPreferenceGet" 1126 1127 resource.user.item_operation.set_preference: 1128 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1129 public: false 1130 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1131 arguments: 1132 - "@resource.user" # Resource 1133 - [ "POST", "PUT" ] # Methods 1134 - "/user_preferences" # Path 1135 - "partkeepr.user_preference.set_preference" # Controller 1136 - "PartKeeprUserPreferenceSet" 1137 1138 resource.user.item_operation.delete_preference: 1139 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1140 public: false 1141 factory: [ "@api.operation_factory", "createItemOperation" ] 1142 arguments: 1143 - "@resource.user" # Resource 1144 - [ "DELETE" ] # Methods 1145 - "/user_preferences" # Path 1146 - "partkeepr.user_preference.delete_preference" # Controller 1147 - "PartKeeprUserPreferenceDelete" 1148 1149 resource.user.item_operation.login: 1150 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1151 public: false 1152 factory: [ "@api.operation_factory", "createItemOperation" ] 1153 arguments: 1154 - "@resource.user" # Resource 1155 - [ "POST" ] # Methods 1156 - "/users/login" # Path 1157 - "partkeepr.auth.login" # Controller 1158 - "PartKeeprAuthLogin" 1159 1160 resource.user.item_operation.change_password: 1161 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1162 public: false 1163 factory: [ "@api.operation_factory", "createItemOperation" ] 1164 arguments: 1165 - "@resource.user" # Resource 1166 - [ "PUT" ] # Methods 1167 - "/users/{id}/changePassword" # Path 1168 - "partkeepr.auth.change_password" # Controller 1169 - "PartKeeprAuthChangePassword" 1170 1171 resource.user.collection_operation.get_providers: 1172 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1173 public: false 1174 factory: [ "@api.operation_factory", "createItemOperation" ] 1175 arguments: 1176 - "@resource.user" # Resource 1177 - [ "GET" ] # Methods 1178 - "/users/get_user_providers" # Path 1179 - "partkeepr.auth.get_providers" # Controller 1180 - "PartKeeprAuthGetProviders" 1181 1182 resource.user.item_operation.get: 1183 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1184 public: false 1185 factory: [ "@api.operation_factory", "createItemOperation" ] 1186 arguments: [ "@resource.user", "GET" ] 1187 1188 resource.user.item_operation.put_custom: 1189 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1190 public: false 1191 factory: [ "@api.operation_factory", "createItemOperation" ] 1192 arguments: 1193 - "@resource.user" # Resource 1194 - [ "PUT" ] # Methods 1195 - "/users/{id}" # Path 1196 - "partkeepr.user.put" # Controller 1197 - "PartKeeprUserPut" 1198 1199 resource.user.collection_operation.post_custom: 1200 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1201 public: false 1202 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1203 arguments: 1204 - "@resource.user" # Resource 1205 - [ "POST" ] # Methods 1206 - "/users" # Path 1207 - "partkeepr.user.post" # Controller 1208 - "PartKeeprUserPost" 1209 1210 resource.user.item_operation.delete_custom: 1211 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1212 public: false 1213 factory: [ "@api.operation_factory", "createItemOperation" ] 1214 arguments: 1215 - "@resource.user" 1216 - [ "DELETE" ] 1217 - "/users/{id}" # Path 1218 - "partkeepr.user.delete" # Controller 1219 - "PartKeeprUserDelete" 1220 1221 resource.user_provider: 1222 parent: "api.resource" 1223 arguments: [ "PartKeepr\\AuthBundle\\Entity\\UserProvider" ] 1224 tags: [ { name: "api.resource" } ] 1225 calls: 1226 - method: "initFilters" 1227 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1228 - method: "initNormalizationContext" 1229 arguments: [ { groups: [ "default" ] } ] 1230 - method: "initDenormalizationContext" 1231 arguments: 1232 - { groups: [ "default" ] } 1233 1234 resource.user: 1235 parent: "api.resource" 1236 arguments: [ "PartKeepr\\AuthBundle\\Entity\\User" ] 1237 tags: [ { name: "api.resource" } ] 1238 calls: 1239 - method: "initFilters" 1240 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1241 - method: "initNormalizationContext" 1242 arguments: [ { groups: [ "default" ] } ] 1243 - method: "initCollectionOperations" 1244 arguments: [ [ "@resource.user.collection_operation.get", "@resource.user.collection_operation.post_custom", "@resource.user.collection_operation.get_providers" ] ] 1245 - method: "initItemOperations" 1246 arguments: [ [ "@resource.user.item_operation.get", "@resource.user.item_operation.get", "@resource.user.item_operation.put_custom", "@resource.user.item_operation.delete_custom", "@resource.user.item_operation.get_preferences", "@resource.user.item_operation.set_preference", "@resource.user.item_operation.delete_preference", "@resource.user.item_operation.login", "@resource.user.item_operation.change_password" ] ] 1247 - method: "initDenormalizationContext" 1248 arguments: 1249 - { groups: [ "default" ] } 1250 1251 resource.fos_user: 1252 parent: "api.resource" 1253 arguments: [ "PartKeepr\\AuthBundle\\Entity\\FOSUser" ] 1254 tags: [ { name: "api.resource" } ] 1255 calls: 1256 - method: "initFilters" 1257 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1258 - method: "initNormalizationContext" 1259 arguments: [ { groups: [ "default" ] } ] 1260 - method: "initDenormalizationContext" 1261 arguments: 1262 - { groups: [ "default" ] } 1263 1264 resource.project: 1265 parent: "api.resource" 1266 arguments: [ "PartKeepr\\ProjectBundle\\Entity\\Project" ] 1267 tags: [ { name: "api.resource" } ] 1268 calls: 1269 - method: "initFilters" 1270 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1271 - method: "initNormalizationContext" 1272 arguments: [ { groups: [ "default" ] } ] 1273 - method: "initDenormalizationContext" 1274 arguments: 1275 - { groups: [ "default" ] } 1276 1277 resource.project_part: 1278 parent: "api.resource" 1279 arguments: [ "PartKeepr\\ProjectBundle\\Entity\\ProjectPart" ] 1280 tags: [ { name: "api.resource" } ] 1281 calls: 1282 - method: "initFilters" 1283 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1284 - method: "initNormalizationContext" 1285 arguments: [ { groups: [ "default" ] } ] 1286 - method: "initDenormalizationContext" 1287 arguments: 1288 - { groups: [ "default" ] } 1289 1290 resource.project_report.collection_operation.get: 1291 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1292 public: false 1293 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1294 arguments: [ "@resource.project_report", "GET" ] 1295 1296 resource.project_report.item_operation.custom_post: 1297 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1298 public: false 1299 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1300 arguments: 1301 - "@resource.project_report" # Resource 1302 - [ "POST" ] # Methods 1303 - "/reports" # Path 1304 - "PartKeeprProjectBundle:ProjectReport:createReport" # Controller 1305 - "ProjectReportPost" # Route name 1306 - # Context (will be present in Hydra documentation) 1307 "@type": "hydra:Operation" 1308 "hydra:title": "A custom operation" 1309 "returns": "xmls:string" 1310 1311 resource.project_report.item_operation.custom_get: 1312 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1313 public: false 1314 factory: [ "@api.operation_factory", "createItemOperation" ] 1315 arguments: 1316 - "@resource.project_report" # Resource 1317 - [ "GET" ] # Methods 1318 - "/reports/{id}" # Path 1319 - "PartKeeprProjectBundle:ProjectReport:getReport" # Controller 1320 - "ProjectReportGet" # Route name 1321 - # Context (will be present in Hydra documentation) 1322 "@type": "hydra:Operation" 1323 "hydra:title": "A custom operation" 1324 "returns": "xmls:string" 1325 1326 resource.project_report.item_operation.put: 1327 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1328 public: false 1329 factory: [ "@api.operation_factory", "createItemOperation" ] 1330 arguments: [ "@resource.project_report", "PUT" ] 1331 1332 resource.project_report.item_operation.delete: 1333 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1334 public: false 1335 factory: [ "@api.operation_factory", "createItemOperation" ] 1336 arguments: [ "@resource.project_report", "DELETE" ] 1337 1338 resource.project_report: 1339 parent: "api.resource" 1340 arguments: [ "PartKeepr\\ProjectBundle\\Entity\\Report" ] 1341 tags: [ { name: "api.resource" } ] 1342 calls: 1343 - method: "initItemOperations" 1344 arguments: [ [ "@resource.project_report.item_operation.custom_get", "@resource.project_report.item_operation.put", "@resource.project_report.item_operation.delete" ] ] 1345 - method: "initCollectionOperations" 1346 arguments: [ [ "@resource.project_report.collection_operation.get", "@resource.project_report.item_operation.custom_post"]] 1347 - method: "initFilters" 1348 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1349 - method: "initNormalizationContext" 1350 arguments: [ { groups: [ "default", "readonly" ] } ] 1351 - method: "initDenormalizationContext" 1352 arguments: 1353 - { groups: [ "default" ] } 1354 1355 resource.project_report_project: 1356 parent: "api.resource" 1357 arguments: [ "PartKeepr\\ProjectBundle\\Entity\\ReportProject" ] 1358 tags: [ { name: "api.resource" } ] 1359 calls: 1360 - method: "initFilters" 1361 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1362 - method: "initNormalizationContext" 1363 arguments: [ { groups: [ "default" ] } ] 1364 - method: "initDenormalizationContext" 1365 arguments: 1366 - { groups: [ "default" ] } 1367 1368 resource.project_report_part: 1369 parent: "api.resource" 1370 arguments: [ "PartKeepr\\ProjectBundle\\Entity\\ReportPart" ] 1371 tags: [ { name: "api.resource" } ] 1372 calls: 1373 - method: "initFilters" 1374 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1375 - method: "initNormalizationContext" 1376 arguments: [ { groups: [ "default" ] } ] 1377 - method: "initDenormalizationContext" 1378 arguments: 1379 - { groups: [ "default" ] } 1380 1381 resource.project_attachment.item_operation.custom_get_image: 1382 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1383 public: false 1384 factory: [ "@api.operation_factory", "createItemOperation" ] 1385 arguments: 1386 - "@resource.project_attachment" # Resource 1387 - [ "GET" ] # Methods 1388 - "/project_attachments/{id}/getImage" # Path 1389 - "PartKeeprProjectBundle:ProjectAttachment:getImage" # Controller 1390 - "ProjectAttachmentGetImage" # Route name 1391 - # Context (will be present in Hydra documentation) 1392 "@type": "hydra:Operation" 1393 "hydra:title": "A custom operation" 1394 "returns": "xmls:string" 1395 1396 resource.project_attachment.item_operation.custom_get: 1397 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1398 public: false 1399 factory: [ "@api.operation_factory", "createItemOperation" ] 1400 arguments: 1401 - "@resource.project_attachment" # Resource 1402 - [ "GET" ] # Methods 1403 - "/project_attachments/{id}/getFile" # Path 1404 - "PartKeeprProjectBundle:ProjectAttachment:getFile" # Controller 1405 - "ProjectAttachmentGet" # Route name 1406 - # Context (will be present in Hydra documentation) 1407 "@type": "hydra:Operation" 1408 "hydra:title": "A custom operation" 1409 "returns": "xmls:string" 1410 1411 resource.project_attachment.item_operation.custom_get_mime: 1412 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1413 public: false 1414 factory: [ "@api.operation_factory", "createItemOperation" ] 1415 arguments: 1416 - "@resource.project_attachment" # Resource 1417 - [ "GET" ] # Methods 1418 - "/project_attachments/{id}/getMimeTypeIcon" # Path 1419 - "PartKeeprProjectBundle:ProjectAttachment:getMimeTypeIcon" # Controller 1420 - "ProjectAttachmentMimeTypeIcon" # Route name 1421 - # Context (will be present in Hydra documentation) 1422 "@type": "hydra:Operation" 1423 "hydra:title": "A custom operation" 1424 "returns": "xmls:string" 1425 1426 resource.project_attachment.item_operation.get: 1427 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1428 public: false 1429 factory: [ "@api.operation_factory", "createItemOperation" ] 1430 arguments: [ "@resource.project_attachment", "GET" ] 1431 1432 resource.project_attachment: 1433 parent: "api.resource" 1434 arguments: [ "PartKeepr\\ProjectBundle\\Entity\\ProjectAttachment" ] 1435 tags: [ { name: "api.resource" } ] 1436 calls: 1437 - method: "initItemOperations" 1438 arguments: [ [ "@resource.project_attachment.item_operation.get", "@resource.project_attachment.item_operation.custom_get", "@resource.project_attachment.item_operation.custom_get_mime", "@resource.project_attachment.item_operation.custom_get_image" ] ] 1439 - method: "initFilters" 1440 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1441 - method: "initNormalizationContext" 1442 arguments: [ { groups: [ "default" ] } ] 1443 - method: "initDenormalizationContext" 1444 arguments: 1445 - { groups: [ "default" ] } 1446 1447 resource.project_run: 1448 parent: "api.resource" 1449 arguments: [ "PartKeepr\\ProjectBundle\\Entity\\ProjectRun" ] 1450 tags: [ { name: "api.resource" } ] 1451 calls: 1452 - method: "initFilters" 1453 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1454 - method: "initNormalizationContext" 1455 arguments: [ { groups: [ "default" ] } ] 1456 - method: "initDenormalizationContext" 1457 arguments: 1458 - { groups: [ "default" ] } 1459 1460 resource.project_run_part: 1461 parent: "api.resource" 1462 arguments: [ "PartKeepr\\ProjectBundle\\Entity\\ProjectRunPart" ] 1463 tags: [ { name: "api.resource" } ] 1464 calls: 1465 - method: "initFilters" 1466 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1467 - method: "initNormalizationContext" 1468 arguments: [ { groups: [ "default" ] } ] 1469 - method: "initDenormalizationContext" 1470 arguments: 1471 - { groups: [ "default" ] } 1472 1473 resource.system_notice.item_operation.get: 1474 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1475 public: false 1476 factory: [ "@api.operation_factory", "createItemOperation" ] 1477 arguments: [ "@resource.system_notice", "GET" ] 1478 1479 resource.system_notice.item_operation.acknowledge: 1480 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1481 public: false 1482 factory: [ "@api.operation_factory", "createItemOperation" ] 1483 arguments: 1484 - "@resource.system_notice" # Resource 1485 - [ "PUT" ] # Methods 1486 - "/system_notices/{id}/acknowledge" # Path 1487 - "partkeepr.system_notice.acknowledge" # Controller 1488 - "SystemNoticeAcknowledge" # Route name 1489 1490 resource.system_notice: 1491 parent: "api.resource" 1492 arguments: [ "PartKeepr\\CoreBundle\\Entity\\SystemNotice" ] 1493 tags: [ { name: "api.resource" } ] 1494 calls: 1495 - method: "initItemOperations" 1496 arguments: [ [ "@resource.system_notice.item_operation.get", "@resource.system_notice.item_operation.acknowledge" ] ] 1497 - method: "initFilters" 1498 arguments: [ [ "@doctrine_reflection_service.search_filter" ] ] 1499 - method: "initNormalizationContext" 1500 arguments: [ { groups: [ "default" ] } ] 1501 - method: "initDenormalizationContext" 1502 arguments: 1503 - { groups: [ "default" ] } 1504 1505 resource.system_preference.item_operation.get_preferences: 1506 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1507 public: false 1508 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1509 arguments: 1510 - "@resource.system_preference" # Resource 1511 - [ "GET" ] # Methods 1512 - "/system_preferences" # Path 1513 - "partkeepr.system_preference.get_preferences" # Controller 1514 - "PartKeeprSystemPreferenceGet" 1515 1516 resource.system_preference.item_operation.set_preference: 1517 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1518 public: false 1519 factory: [ "@api.operation_factory", "createCollectionOperation" ] 1520 arguments: 1521 - "@resource.system_preference" # Resource 1522 - [ "POST", "PUT" ] # Methods 1523 - "/system_preferences" # Path 1524 - "partkeepr.system_preference.set_preference" # Controller 1525 - "PartKeeprSystemPreferenceSet" 1526 1527 resource.system_preference.item_operation.delete_preference: 1528 class: "Dunglas\ApiBundle\Api\Operation\Operation" 1529 public: false 1530 factory: [ "@api.operation_factory", "createItemOperation" ] 1531 arguments: 1532 - "@resource.system_preference" # Resource 1533 - [ "DELETE" ] # Methods 1534 - "/system_preferences" # Path 1535 - "partkeepr.system_preference.delete_preference" # Controller 1536 - "PartKeeprSystemPreferenceDelete" 1537 1538 resource.system_preference: 1539 parent: "api.resource" 1540 arguments: [ "PartKeepr\\SystemPreferenceBundle\\Entity\\SystemPreference" ] 1541 tags: [ { name: "api.resource" } ] 1542 calls: 1543 - method: "initNormalizationContext" 1544 arguments: [ { groups: [ "default" ] } ] 1545 - method: "initCollectionOperations" 1546 arguments: [ [ "@resource.system_preference.item_operation.get_preferences" ] ] 1547 - method: "initItemOperations" 1548 arguments: [ [ "@resource.system_preference.item_operation.set_preference", "@resource.system_preference.item_operation.delete_preference" ] ] 1549 - method: "initDenormalizationContext" 1550 arguments: 1551 - { groups: [ "default" ] }