The purpose of these parameters is explained below.
generateAsyncCode
When true, the CodeGen engine generates asynchronous C# and Java code.
useMethodPrefix
When true, HTTP verbs are used as prefix for generated controller methods.
useModelPostfix
When true, a postfix “Model” is appended to all classes generated from schemas.
useControllerPostfix
When true, a postfix “Controller” is appended to all controllers generated from path groups.
useEnumPostfix
When true, a postfix “Enum” is appended to all enumerations lifted from “allowedValues”.
useConstructorsForConfig
When true, configuration values e.g., authentication credentials, are accepted as controller constructor parameters. Otherwise, these values generate variables in a Configuration class.
iOSUseAppInfoPlist
When true, configuration values e.g., authentication credentials, are expected in app-info.plist file for the iOS SDK. When set, this setting ignores useConstructorsForConfig flag.
iOSGenerateCoreData
When true, iOS CoreData schema and classes are generated.
androidUseAppManifest
When true, configuration values e.g., authentication credentials, are expected in AndroidManifest.xml file for the Android SDK. When set, this setting ignores useConstructorsForConfig flag.
collectParameters
When true, operation parameters are expected to passed as a collection. For example in PHP, the generated method expects a Map containing parameters as Key-Value pairs. This is currently implemented for PHP, Python, GO, and Objective-C. When set, this is applied globally on all endpoints/operations. If you wish to use this option on specific endpoints, use the x-operation-settings::collectParameters instead.
csharpDefaultNamespace
A valid C# namespace value to be used as the default namespace. Leave empty or null to automatically generate.
javaDefaultPackageName
A valid Java package name to be used as the base package name. Leave empty or null to automatically generate. This value is applied for both Java and Android code generation templates.
appendContentHeaders
When true, code generation engine automatically detects request and response schema and appends content headers e.g., “accept: application/json” and “content-type: application/json” headers for JSON serialization mode.
brandLabel
A string value to brand the generated files. For example: “Acme Corp.”
userAgent
A string value to use as user-agent in the API calls. This is useful for analytics and tracking purposes. For example: “SDK V1.1”
enableAdditionalModelProperties
When true, additional or unknown properties in the response JSON are collected into a dictionary.
Advanced Settings
APIMATIC allows further customization of endpoints (called operations in Swagger). These settings can be specified inside an “operation” object using property name “x-operation-settings
”. See an example as following.