type
property. Any content items not based on the Article content type will be omitted from the API response.
{
"system": {
"id": "335d17ac-b6ba-4c6a-ae31-23c1193215cb",
"collection": "default",
"name": "My article",
"codename": "my_article",
"language": "en-US",
"type": "article",
"sitemap_locations": [],
"last_modified": "2023-03-27T13:21:11.38Z",
"workflow_step": "published"
},
"elements": {
...
}
}
// Tip: Find more about Java SDK at https://kontent.ai/learn/java
import kontent.ai.delivery.*;
// Initializes a DeliveryClient
DeliveryClient client = new DeliveryClient("<YOUR_ENVIRONMENT_ID>");
// Gets all content items
CompletionStage<ContentItemsListingResponse> listingResponse = client.getItems();
// Tip: Find more about Java SDK at https://kontent.ai/learn/java
import kontent.ai.delivery.*;
// Initializes a DeliveryClient
DeliveryClient client = new DeliveryClient("<YOUR_ENVIRONMENT_ID>");
// Tip: Create strongly typed models according to https://kontent.ai/learn/net-strong-types
// Registers the model class for articles
client.registerType(Article.class);
// Gets all articles
CompletionStage<List<Article>> items = client.getItems(
Article.class,
DeliveryParameterBuilder.params()
.filterEquals("system.type", "article")
.build();
);