Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Changelog
## [v0.3.1](https://github.com/contentstack/contentstack-management-dotnet/tree/v0.3.1)
- Fix
- Fixed apiVersion param in Publish/Unpublish methods

## [v0.3.0](https://github.com/contentstack/contentstack-management-dotnet/tree/v0.3.0)
- Feat
- Bulk Operations:
- Added Support for the bulk operations of Publish, Unpublish, Delete, Workflow Update, addRelease Items, Update Release Items, Job-Status both sync and async methods
- Nested Global Fields:
Added the support for the nested global fields for all the CRUD Operations

# Changelog
## [v0.2.0](https://github.com/contentstack/contentstack-management-dotnet/tree/v0.2.0)
- Fix
- Fixed the Single Publish issue with specific entry version (Changing the type from String to Int)
Expand Down
2 changes: 1 addition & 1 deletion Contentstack.Management.Core/ContentstackClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class ContentstackClient : IContentstackClient
private HttpClient _httpClient;
private bool _disposed = false;

private string Version => "0.3.0";
private string Version => "0.3.1";
private string xUserAgent => $"contentstack-management-dotnet/{Version}";
#endregion

Expand Down
16 changes: 8 additions & 8 deletions Contentstack.Management.Core/Models/Asset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ public virtual ContentstackResponse Publish(PublishUnpublishDetails details, str
stack.ThrowIfNotLoggedIn();
ThrowIfUidEmpty();

var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/publish", "asset", apiVersion);
return stack.client.InvokeSync(service);
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/publish", "asset");
return stack.client.InvokeSync(service, apiVersion: apiVersion);
}

/// <summary>
Expand All @@ -271,8 +271,8 @@ public virtual Task<ContentstackResponse> PublishAsync(PublishUnpublishDetails d
stack.ThrowIfNotLoggedIn();
ThrowIfUidEmpty();

var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/publish", "asset", apiVersion);
return stack.client.InvokeAsync<PublishUnpublishService, ContentstackResponse>(service);
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/publish", "asset");
return stack.client.InvokeAsync<PublishUnpublishService, ContentstackResponse>(service, apiVersion: apiVersion);
}

/// <summary>
Expand All @@ -291,8 +291,8 @@ public virtual ContentstackResponse Unpublish(PublishUnpublishDetails details, s
stack.ThrowIfNotLoggedIn();
ThrowIfUidEmpty();

var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/unpublish", "asset", apiVersion);
return stack.client.InvokeSync(service);
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/unpublish", "asset");
return stack.client.InvokeSync(service, apiVersion: apiVersion);
}

/// <summary>
Expand All @@ -311,8 +311,8 @@ public virtual Task<ContentstackResponse> UnpublishAsync(PublishUnpublishDetails
stack.ThrowIfNotLoggedIn();
ThrowIfUidEmpty();

var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/unpublish", "asset", apiVersion);
return stack.client.InvokeAsync<PublishUnpublishService, ContentstackResponse>(service);
var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/unpublish", "asset");
return stack.client.InvokeAsync<PublishUnpublishService, ContentstackResponse>(service, apiVersion: apiVersion);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Contentstack.Management.Core/Models/Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public virtual ContentstackResponse Publish(PublishUnpublishDetails details, str
ThrowIfUidEmpty();

var service = new PublishUnpublishService(stack.client.serializer, stack, details, $"{resourcePath}/publish", "entry", locale);
return stack.client.InvokeSync(service);
return stack.client.InvokeSync(service, apiVersion: apiVersion);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>0.3.0</Version>
<Version>0.3.1</Version>
</PropertyGroup>
</Project>