Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19072

REST API Provider-ID containing "v" doesn't work

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 4.5.0, 4.6.0
    • None

    Description

      We are trying to extend the REST interface on an eZ 4.6. We followed the manual at http://doc.ez.no/eZ-Publish/Technical-manual/4.5/Features/Rest-API/Extension-functionality/Steps/Step-3-Extending-the-REST-API . But our API provider had the shortcut "svr", so the rest.ini.append.php read:

      <?php /*
      [ApiProvider]
      ProviderClass[svr]=svrRestApiProvider
      */ ?>

      All requests to .../api/svr/v1/... failed with a "404" error.

      After trying around for a long time, we finally renamed the API provider ID to "sxr" and suddenly everything worked fine.

      Steps to reproduce

      1. Create the ezxRestApiProvider extension from the documentation example

      2. Set the rest.ini.append.php of the extension to

      [ApiProvider]
      ProviderClass[kpt]=ezxRestApiProvider
      

      3. Test it from your url: http://site/api/kpt/v2/foo.
      It works.

      4. Set the rest.ini.append.php of the extension to something with V

      [ApiProvider]
      ProviderClass[kvt]=ezxRestApiProvider
      

      5. Test it from your url: http://site/api/kvt/v2/foo.
      You will receive a

      {"error_message":"Not Found"}

      Attachments

        Activity

          People

            unknown unknown
            edf@ez.no edf@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: