We have made some minor improvements to synchronization in our Java and Android SDKs. To benefit from these improvements, please generate your SDKs again.
10 posts tagged with "Android"
View All TagsDo-Not-Split Words in Code Generation Settings
We have added a new CodeGen setting that allows you to specify a list of words that Code Generation will not split when converting identifiers from API specification to language-specific identifiers. This is useful for declaring brand names such as APIMatic.
E.g. if you provide the words apimatic
and vmware
in your the list, APIMaticandvmWare
becomes ApimaticAndVmware
or apimatic_and_vmware
, depending on the place of use.
Allow Skipping Verification of SSL Certificates
Our Android, .Net, Go, Java, NodeJS, PHP, Python and Ruby SDKs now allow skipping verification of SSL certificates. To do this enable the CodeGen Setting Allow Skipping Certificate Verification and then set the corresponding configuration variable in the respective SDK.
Switching Http Client in Android and Java to OkHttp
We are happy to announce that our Android and Java SDKs now use the better and faster OkHttp client.
Android SDK and Gradle Version Upgraded
We have updated our Android SDKs to use version 3.0.1 of the Android Plugin for Gradle, and have upgraded the Gradle version to 4.1.
The minimum SDK version has been raised to 16 and the target SDK version has been raised to 26.
Please regenerate your Android SDKs if you wish to get these changes.
Discriminator Usage Fixed in Java and Android
There was a bug where the Discriminator field was not being set by default.
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.
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
.
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
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.
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.