-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
None
Installing Magnolia with CLI means a neat single folder for all light dev code
magnolia.resources.dir=${magnolia.home}/../../../light-modules
for both instances, author and public.
Yet, this poses an issue how to reference a rest endpoint like this:
from a REST client definition like this one:
where one feels the itching to replace the "rest" part of the path with either "magnoliaAuthor" or "magnoliaPublic", depending on which instance will in the end do the querying.
The user could at least use:
1) a path template, sth like
baseUrl: 'http://localhost:8080/{magnoliaInstance}/.rest'
and then, in the template script, resolve the value by using a context property.
2) a preconfigured (default) instance resolver like
baseUrl: 'http://localhost:8080/{instanceResolver}/.rest'
with no extra need to care for this in the template script.
- is caused by
-
MGNLRESTCL-88 DOC: Page with REST v2 configuration examples
- Closed