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

The JS REST client: create "options" object

    XMLWordPrintable

Details

    Description

      We should provide an optional options object to the CAPI instantiation, which may hold all information which differs from the set defaults:

      var capi = new CAPI(
          "http://example.com/...",
          new SessionAuthAgent(...),
          {
              logRequests: true,
              rootPath: "/api/ezp/v2/some/special/path/",
              ...
          }
      );
      

      Inside of the CAPI those options should be filled with defaults

      var defaults = {
          logRequests: false,
          rootPath: "/api/ezp/v2/",
          connections: [
              ...
          ],
          ...
      };
      

      Those options should then be merged with the given ones (if there have been any).

      Attachments

        Activity

          People

            Unassigned Unassigned
            Anton.Petrushenkov-obsolete@ez.no Anton Petrushenkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 30 minutes
                4h 30m