Changelog / CSHARP

This changelog is filtered to show only changes for CSHARP. Go back to full changelog.

Sep 28, 2017

CSharp SDKs Are Now StyleCop Compliant

APIMATIC’s CSharp SDKs are now compliant with the StyleCop Coding Style Guide

  • StyleCop compliance means that the CSharp code generated is guaranteed to be of high-quality.
  • CSharp SDKs are written in a industry-standard code style to allow for maximum interoperability.

Re-generate your CSharp SDKs now for the new changes.

Jul 28, 2017

New Target - .NET Standard SDK

We are excited to announce the latest addition to our long list of supported platforms. Our C# section now has a new template for a .NET Standad library in addition to the already supported PCL and UWP templates. This library targets .Net Standard 1.3.

Jul 28, 2017

Switching to native .NET HttpClient.

We are happy to anounce that our .NET SDKs have now switched to the stabler, frequently updated and regularly maintained native HttpClient found in the System.Net.Http Assembly.

Jul 28, 2017

Newtonsoft Json.NET Version Update to 10.0.3

Our CSharp .NET SDKs have been updated to use the 10.0.3 version of the Newtonsoft Json.Net utility. This comes with numerous new features, bug fixes, wider support and increased stability.

Jul 12, 2017

OAuth 2.0 Authorization Support Added

Our API editor and Code Generation engine now supports OAuth 2.0 for authentication in the generated SDKs.

OAuth 2 enabled SDKs will help developers in:

  • Obtaining consent from user
  • Acquiring access token
  • Refreshing tokens when they expire
  • Making authorized API calls

You can read more about OAuth 2.0 in APIMatic editor and Code Generation engine here.

Apr 7, 2017

Polymorphic Responses with Discriminator Field

APIMatic Code Generation engine now supports polymorphic responses with the help of a discriminator field.

  • Discriminator is a field that is used to differentiate between a parent model and models that inherit from it.
  • The response is deserialized into the parent model or one of its child classes by inspecting the discriminator field’s value in the response.
  • Using a discriminator field, you can build leaner models by not having to build unions of fields needed by a polymorphic response.

Check out the Discriminator documentation to get started.

Mar 6, 2017

Array Serialization Formats

Multiple formats are now supported for Array serialisation in form and query parameters. Formats supported include UnIndexed, Indexed, Plain, CSV, PSV, TSV.

This settings can be set using our API Blueprint CodeGen setting extension named ARRAYSERIALIZATION.

Feb 22, 2017

Additional properties now allowed in CSharp

We have now added support for additional properties in models in the CSharp SDK. The additional properties are deserialized and stored in a dictionary inside the model.

This can be enabled via navigating to the Settings > CodeGen Settings page in the API editor and enabling the Enable Additional Model Properties flag.

Feb 6, 2017

Multiple Datetime Formats in SDKs

We have now added support for multiple datetime formats in our SDKs. The following formats are supported:

  • RFC1123 Datetime (Mon, 15 Jun 2009 20:45:30 GMT)
  • RFC3339 Datetime (2016-03-13T12:52:32.123Z)
  • Unix Timestamp (1480809600)

Jan 11, 2017

Logging in SDKs

SDKs generated by APIMATIC now support logging events!

  • Logging-enabled SDKs will log important events in the API lifecycle to the console, log file or another logging backend.
  • Logging backends are configurable. You can even plug-in a logging service like Loggly or Sentry into your SDKs.
  • Easily monitor your SDK usage and find bugs when they occur.