Delivery API - Multi-site setup - return only items under certain domain
Hi,
I set up an Umbraco v12 RC2 with multiple sites. Each of them have it's own domain.
But when I try to get the data via Content Delivery API, I get items from all the domains (root or start items), regardles to which domain I call the API.
Did you get anywhere with this? I am also working on a multi-site install.
I'm actually finding the DeliveryApi quite limiting at the moment so I am starting to build out my own controllers but utilise as much of the API inside of those controllers as I can so as not to have to reinvent the wheel.
I guess you could potentially filter the responses based on the domain but so far I have not seen domains or cultures returned in the API so you would need to do your own content querying first. Everything is there in the API for you to return the results in a way that is consistent with the default API responses.
Delivery API - Multi-site setup - return only items under certain domain
Hi, I set up an Umbraco v12 RC2 with multiple sites. Each of them have it's own domain. But when I try to get the data via Content Delivery API, I get items from all the domains (root or start items), regardles to which domain I call the API.
For example I have:
when I make a DeliveryAPI call to: https://site-a.com/umbraco/delivery/api/v1/content
I get also the items which belong to domain site-b.com
Thank you!
Did you get anywhere with this? I am also working on a multi-site install.
I'm actually finding the DeliveryApi quite limiting at the moment so I am starting to build out my own controllers but utilise as much of the API inside of those controllers as I can so as not to have to reinvent the wheel.
I guess you could potentially filter the responses based on the domain but so far I have not seen domains or cultures returned in the API so you would need to do your own content querying first. Everything is there in the API for you to return the results in a way that is consistent with the default API responses.
I think that Umbraco does the work for you already, but only for
/umbraco/delivery/api/v1/content/item/{id}
/umbraco/delivery/api/v1/content/item/{path}
but not for:
is working on a reply...