diff --git a/Kontent.Ai.Delivery.Abstractions/ContentItems/IContentItemSystemAttributes.cs b/Kontent.Ai.Delivery.Abstractions/ContentItems/IContentItemSystemAttributes.cs
index b4b60395..5b9fa3fa 100644
--- a/Kontent.Ai.Delivery.Abstractions/ContentItems/IContentItemSystemAttributes.cs
+++ b/Kontent.Ai.Delivery.Abstractions/ContentItems/IContentItemSystemAttributes.cs
@@ -28,7 +28,12 @@ public interface IContentItemSystemAttributes : ISystemAttributes
public string Collection { get; }
///
- /// Gets the codename of the workflow step which the content item is assigned to .
+ /// Gets the codename of the workflow which the content item is assigned to.
+ ///
+ public string Workflow { get; }
+
+ ///
+ /// Gets the codename of the workflow step which the content item is assigned to.
///
public string WorkflowStep { get; }
}
diff --git a/Kontent.Ai.Delivery.Benchmarks/Fixtures/full_articles.json b/Kontent.Ai.Delivery.Benchmarks/Fixtures/full_articles.json
index 063ca8f5..7bc85ba6 100644
--- a/Kontent.Ai.Delivery.Benchmarks/Fixtures/full_articles.json
+++ b/Kontent.Ai.Delivery.Benchmarks/Fixtures/full_articles.json
@@ -9,6 +9,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-09-18T10:58:38.9172599Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -182,6 +183,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:13:35.312Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -364,6 +366,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:14:07.384Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -528,6 +531,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:11.38Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -699,6 +703,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:49.151Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -867,6 +872,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:24:54.042Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1046,6 +1052,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:13:35.312Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1322,6 +1329,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:11.38Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1493,6 +1501,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:49.151Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1661,6 +1670,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:24:54.042Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
diff --git a/Kontent.Ai.Delivery.Benchmarks/Fixtures/on_roasts.json b/Kontent.Ai.Delivery.Benchmarks/Fixtures/on_roasts.json
index 2094cd62..dcec988c 100644
--- a/Kontent.Ai.Delivery.Benchmarks/Fixtures/on_roasts.json
+++ b/Kontent.Ai.Delivery.Benchmarks/Fixtures/on_roasts.json
@@ -8,6 +8,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:11.38Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -180,6 +181,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:13:35.312Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -362,6 +364,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:49.151Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
diff --git a/Kontent.Ai.Delivery.Caching.Tests/Fixtures/brazil_natural_barra_grande.json b/Kontent.Ai.Delivery.Caching.Tests/Fixtures/brazil_natural_barra_grande.json
index 02c98f3b..ac284e4e 100644
--- a/Kontent.Ai.Delivery.Caching.Tests/Fixtures/brazil_natural_barra_grande.json
+++ b/Kontent.Ai.Delivery.Caching.Tests/Fixtures/brazil_natural_barra_grande.json
@@ -10,6 +10,7 @@
"coffee"
],
"last_modified": "2017-09-07T08:21:06.8837862Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
diff --git a/Kontent.Ai.Delivery.Caching.Tests/Fixtures/full_articles.json b/Kontent.Ai.Delivery.Caching.Tests/Fixtures/full_articles.json
index b9582e66..0f0197ea 100644
--- a/Kontent.Ai.Delivery.Caching.Tests/Fixtures/full_articles.json
+++ b/Kontent.Ai.Delivery.Caching.Tests/Fixtures/full_articles.json
@@ -9,6 +9,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-09-18T10:58:38.9172599Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -183,6 +184,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:13:35.312Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -366,6 +368,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:14:07.384Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -531,6 +534,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:11.38Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -703,6 +707,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:49.151Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -872,6 +877,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:24:54.042Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1052,6 +1058,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:13:35.312Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1329,6 +1336,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:11.38Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1501,6 +1509,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:49.151Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1670,6 +1679,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:24:54.042Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
diff --git a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/articles.json b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/articles.json
index 2b81615d..def765bc 100644
--- a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/articles.json
+++ b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/articles.json
@@ -11,6 +11,7 @@
"articles"
],
"last_modified": "2017-12-08T08:35:27.1009654Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -163,6 +164,7 @@
"articles"
],
"last_modified": "2017-12-08T08:37:13.6773134Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -330,6 +332,7 @@
"articles"
],
"last_modified": "2017-12-08T08:40:45.7289755Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -479,6 +482,7 @@
"articles"
],
"last_modified": "2017-12-08T08:49:53.6039943Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -635,6 +639,7 @@
"articles"
],
"last_modified": "2017-12-08T08:50:50.6091672Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -788,6 +793,7 @@
"articles"
],
"last_modified": "2017-12-08T09:01:44.4223969Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -950,6 +956,7 @@
"type": "hosted_video",
"sitemap_locations": [],
"last_modified": "2017-06-27T12:56:41.1882715Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -979,6 +986,7 @@
"type": "tweet",
"sitemap_locations": [],
"last_modified": "2017-06-27T13:00:08.2735049Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1020,6 +1028,7 @@
"articles"
],
"last_modified": "2017-12-08T08:37:13.6773134Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1185,6 +1194,7 @@
"type": "hosted_video",
"sitemap_locations": [],
"last_modified": "2017-06-27T12:57:16.7333276Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1216,6 +1226,7 @@
"articles"
],
"last_modified": "2017-12-08T08:49:53.6039943Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1372,6 +1383,7 @@
"articles"
],
"last_modified": "2017-12-08T08:50:50.6091672Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -1525,6 +1537,7 @@
"articles"
],
"last_modified": "2017-12-08T09:01:44.4223969Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
diff --git a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/coffee_beverages_explained.json b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/coffee_beverages_explained.json
index c50ec02c..c36b0b68 100644
--- a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/coffee_beverages_explained.json
+++ b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/coffee_beverages_explained.json
@@ -10,6 +10,7 @@
"articles"
],
"last_modified": "2017-06-27T13:01:54.5735581Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -95,6 +96,7 @@
"type": "tweet",
"sitemap_locations": [],
"last_modified": "2017-06-27T13:00:08.2735049Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -134,6 +136,7 @@
"type": "hosted_video",
"sitemap_locations": [],
"last_modified": "2017-06-27T12:57:16.7333276Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
diff --git a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/items.json b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/items.json
index 8c228287..598ac799 100644
--- a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/items.json
+++ b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/items.json
@@ -11,6 +11,7 @@
"about_us"
],
"last_modified": "2017-04-04T13:33:25.0990741Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -41,6 +42,7 @@
"brewers"
],
"last_modified": "2017-09-07T08:18:16.269361Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -125,6 +127,7 @@
"about_us"
],
"last_modified": "2016-10-20T12:47:13.65023Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -167,6 +170,7 @@
"about_us"
],
"last_modified": "2017-04-04T11:48:26.1878079Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
@@ -215,6 +219,7 @@
"about_us"
],
"last_modified": "2016-10-20T12:06:18.3403458Z",
+ "workflow": "default",
"workflow_step": "published"
},
"elements": {
diff --git a/Kontent.Ai.Delivery.Tests/DeliveryClientTests.cs b/Kontent.Ai.Delivery.Tests/DeliveryClientTests.cs
index 95515fff..3e972c34 100644
--- a/Kontent.Ai.Delivery.Tests/DeliveryClientTests.cs
+++ b/Kontent.Ai.Delivery.Tests/DeliveryClientTests.cs
@@ -74,6 +74,7 @@ public async Task GetItemAsync()
Assert.Equal("article", beveragesItem.System.Type);
Assert.Equal("en-US", beveragesItem.System.Language);
Assert.Equal("default", beveragesItem.System.Collection);
+ Assert.Equal("default", beveragesItem.System.Workflow);
Assert.Equal("published", beveragesItem.System.WorkflowStep);
Assert.NotEmpty(beveragesItem.System.SitemapLocation);
Assert.NotEmpty(roastsItem.RelatedArticles);
@@ -196,7 +197,7 @@ public async Task GetItemAsync_NotFound_RespondsWithApiError()
AssertErrorResponse(actualResponse, expectedError);
Assert.Null(actualResponse.Item);
}
-
+
[Fact]
public async Task GetItemAsync_InvalidProjectId_RespondsWithApiError()
{
@@ -210,7 +211,7 @@ public async Task GetItemAsync_InvalidProjectId_RespondsWithApiError()
var client = InitializeDeliveryClientWithACustomTypeProvider(_mockHttp);
var actualResponse = await client.GetItemAsync