Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-2499

Product Catalog REST API doesn't work for fetching specific region

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.0.3
    • 4.0.2
    • None

    Description

      While fetching a specific region, the user is presented with the following error:

      Could not resolve argument $identifier of \"Ibexa\\Bundle\\ProductCatalog\\Controller\\REST\\RegionController::getregionaction()\", maybe you forgot to register the controller as a service or missed tagging it with the \"controller.service_arguments\"?
      

      Steps to reproduce:
      1. Configure some regions for Product Catalog, e.g.:

          repositories:
              default:
                  product_catalog:
                      engine: default
                      regions:
                          france:
                              vat_categories:
                                  fii: 12
                                  foo: 0
                                  bar: ~
                          foo:
                              vat_categories:
                                  fii: 24
                                  foo: 0
                                  bar: ~
                          bar:
                              vat_categories:
                                  fii: 24
                                  foo: 0
                                  bar: ~
      

      2. Perform a REST API request e.g. via Postman targetting the following endpoint:
      GET localhost:8007/api/ibexa/v2/product/catalog/regions/france

      Result:
      The mentioned error surfaces.
      Expected result:
      A proper response containing "france" region details.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              konrad.oboza@ibexa.co Konrad Oboza
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: