I am working with Kentico Cloud using KenticoCloud DeliveryClient. The issue is that I am loading the data for NewsArticle which include BodyContent. The BodyContent has some InlineContentItemData supposed to be resolved by Resolvers. I added PartnerList (item which includes several Partner items), Carousel (item which includes several ImageGridItem items) and some HTML text.
Here is the code to make the request:
var response = await Client.GetItemsAsync<NewsArticle>(
new EqualsFilter("system.type", "news_article"),
new OrderParameter("elements.date", SortOrder.Descending)
);
(it is to get a full list of articles, then we find out the desired article later. I know I can use Url Slug to retrieve the content, but I need the full list for other stuff)
The issue is that in the JSON response, there is Carousel and PartnerList item, both of them contain the items that I added from the CMS, but individual Carousel items (ImageGridItem) were not presented in the JSON, only Partner items.
Thanks
DeliveryResponse
has a member calledApiUrl
. Could you perhaps try to extract the URL and run it against the endpoint and check whether the response contains correct data? If the JSON response is ok, the problem is with deserialization. You may try debugging using SourceLink to narrow down the issue. If the JSON resp. is not ok, theUrlBuilder
might not work correctly. Could you then please paste the URL here?