Now you can upload a ZIP file containing your Postman Collection file along with any Postman Environment Files. That way we will extract values for your environment variables from the Environment files and give a better output during conversions on the Transformer or when importing APIs to your Manage APIs page. Support for Postman data dump files has now been added as well.
58 posts tagged with "New Feature"
View All TagsES6 Promises in NodeJS
NodeJS SDKs will now return promises in endpoint calls, as an alternative to accepting callbacks.
- We use ES6 Promises which is based on Promises/A+ and is interoperable with most Promise-based implementations.
- Callbacks are still supported (for backward-compatibility) but are now optional.
Re-generate your NodeJS SDK to get the new Promise-enabled SDK implementation now.
Additional Model Properties Support in Node SDK
NodeJS SDKs can now optionally preserve additional properties returned in the response. This setting can be enabled via Settings > CodeGen Settings
page in the API editor and turning on the Enable Additional Model Properties
flag.
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.
Added Support for Swagger 1.2 ZIP Files
If you have a Swagger 1.2 API description file split into Resource Listing and API Declaration files, you can import/convert it using a ZIP file. Previously, such API description file could only be converted/imported by providing the Resource Listing file via a URL where all API Declaration files were located relative to this URL.
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
.
Added Swagger Type Discriminator Support
Swagger makes use of a property discriminator
to support polymorphism in custom types. We have now added support for this property in our system. We also offer an extension that will allow you to specify a custom value for the discriminator to override its default value.
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.
Swagger Server Configuration Extension
APIMATIC now offers you a swagger extension to specify Server Configuration details within your Swagger file. When you import this file, we will extract the relevant server configuration information from this extension.
Details
Server configurations can be used to create multiple environments, multiple servers that can be used with specific endpoints and server URLs with template parameters. You can view more details about these configurations at Server Configuration. We have added support for an extension to help you specify this information without having to manually add it through the editor everytime you import your Swagger file. For more details on this extension please see Swagger Server Configuration Extension
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)