Re: [MarkLogic Dev General] custom Rest rewriter

2017-04-19 Thread Erik Hennum
Hi, Rajesh and David: While it is possible to modify the rewriter declarations distributed with the REST API, that would be modifying the implementation of the REST API. The rewriter declarations are internal to the REST API, not part of the documented interface. Such changes would fall in

Re: [MarkLogic Dev General] custom Rest rewriter

2017-04-19 Thread David Lee
If I understand your architecture correctly, you have 2 'parts' of an app in one context. Is this a JavaScript browser app ? You want your 'ajax' part to 'piggy back' on the credentials the user entered to login ? ( stored in the browser as cookies ) The reference to avoiding passing

[MarkLogic Dev General] custom Rest rewriter

2017-04-19 Thread Rajesh Kumar
Thanks David, I can maintain two different ports as app and rest servers. But every time I want to call REST API i have to pass credentials for the request from app server , which I want to avoid by having both in same port. I want to access endpoints ( app API or REST API) whenever header has