api_stock_list_products:
  path: /
  methods: [ GET ]
  defaults:
    _controller: prestashop.core.api.stock.controller:listProductsAction
    _legacy_controller: AdminStockManagement

api_stock_list_products_export:
  path: /export
  methods: [ GET ]
  defaults:
    _controller: prestashop.core.api.stock.controller:listProductsExportAction
    _legacy_controller: AdminStockManagement

api_stock_list_product_combinations:
  path: /{productId}
  methods: [ GET ]
  defaults:
    _controller: prestashop.core.api.stock.controller:listProductsAction
    _legacy_controller: AdminStockManagement
  requirements:
    productId: \d+

api_stock_edit_product:
  path: /product/{productId}
  methods: [ POST ]
  defaults:
    _controller: prestashop.core.api.stock.controller:editProductAction
    _legacy_controller: AdminStockManagement
  requirements:
    productId: \d+

api_stock_edit_product_combination:
  path: /product/{productId}/combination/{combinationId}
  methods: [ POST ]
  defaults:
    _controller: prestashop.core.api.stock.controller:editProductAction
    _legacy_controller: AdminStockManagement
  requirements:
    productId: \d+
    combinationId: \d+

api_stock_bulk_edit_products:
  path: /products
  methods: [ POST ]
  defaults:
    _controller: prestashop.core.api.stock.controller:bulkEditProductsAction
    _legacy_controller: AdminStockManagement
