Changelog / JAVA

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

Oct 27, 2017

Discriminator Usage Fixed in Java and Android

There was a bug where the Discriminator field was not being set by dafault.

When creating an instance of a model that inherited from another model, the discriminator field was not assigned a default value.

This behavior has now been fixed. Please regenerate your SDK to get the fix.


Oct 27, 2017

Array Serialization Formats in Java and Android

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.


Oct 27, 2017

Multiple Datetime Formats in Java and Android

We have now added support for multiple datetime formats in our Java and Android 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


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.


Jan 3, 2017

Multiple Base URLs Now Supported

You can now use multiple base URLs in your API description using the new Server Configuration. This feature allows you to

  • Vary the Base URL between endpoints.
  • Create multiple Environments and define different Base URLs for them.
  • Templatize Base URL to allow for configuration using parameters in the client.