Changelog / ANGULARJS

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

Jul 28, 2017

Discriminator Support Added in Angular

Usage of discriminators is already supported by our code generation engine. We are happy to announce that now support for using discriminators has also been added to AngularJS SDK.

  • 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.

Please generate your SDK again if you want to use this feature.


Jul 28, 2017

Datetime Fixes in AngularJS

There was a problem with the datetime implementation in AngularJS. Date/datetime strings were not correctly converted into objects. Instead, strings were being sent and received within the SDK. This problem has now been fixed.

Please generate your SDK again to get this fix.


Jul 28, 2017

Model Serialization Fixed

There was a bug in the AngularJS SDK in sending complex types (models) as Form and Body Parameters.

In cases of endpoints which accept model instances as form/body parameters, models were not being serialized properly before making the endpoint call. This resulted in camel-cased field values being passed, disregarding the correct API names.

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


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.


Jun 7, 2017

AngularJS Circular Dependency Fix

We have changed the structure of the Angular SDK to break cyclic dependencies. Due to this, the following changes have been made:

  • Model deserialization logic has moved out from model files.
  • We have added new files ObjectMapper.js and ModelFactory.js to the SDK.
  • BaseModel is now being used to assign values to model properties (when model class is directly instantiated)
  • BaseController has been added to the SDK.

Please generate your SDK again to get the improved code.


May 8, 2017

Code Compliance Implemented In Angular

Since we’re always working on improving our generated SDK’s, today we’re announcing some major work done on the Angular.js SDK.

  • Angular.js generated code is now standard compliant.
  • The standard we’re using is John Papa’s Angular1 Style Guide.
  • The linter can be run from the command-line by using the command jshint <folder-name-to-lint>.
  • The configuration file for the linter will be included with the SDK from now.

Please generated your SDK again to get the standard compliant code.


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 21, 2017

Module File in Angular SDKs

A new file, Module.js has been added to the angular sdks. It defines the module of the sdk alongwith its dependencies. This is not a breaking change. Everything should work as before, this is just to make it easier to specify the modules that the sdk depends upon.


Feb 21, 2017

Multiple Datetime Formats in Angular

We have now added support for multiple datetime formats in our Angular 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 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.