Details
-
Story
-
Resolution: Fixed
-
Medium
-
None
-
5.2-alpha1
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
Issue Links
- relates to
-
EZP-21263 Hardcoded prefix in the JS REST client
- Closed