Hi, there

I am implementing a Magnolia project which utilizes multisite feature and 
custom rest endpoint. It seems custom rest endpoint doesn't work well in 
multisite environment.

For example, supposed the content path is empty, here's a custom rest endpoint:
http://localhost:8080/.rest/city

There's no way to find out what the current site is, and the site name I can 
get is always "default". Ideally it should support some endpoints like this so 
that it's possible to figure out the current site is "au"
http://localhost:8080/au/.rest/city

I understand it's possible to use domain name mapping which helps to find the 
matched site, such as:
http://magnolia.mycompany.com.au:8080/.rest/city
But it's still a problem in local dev instance and author instance which hosts 
all sites.

It would be possible to solve the problem by having the site name in URI path 
or query parameter and writing a custom site matcher. I just wonder if there's 
something more convenient before I go with the workaround.

Any comment will be appreciated.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=2c7fc675-6827-4a3c-bff9-9228a8fbdb9c


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to