This is always the last function argument. It should include the following configuration items
credentials
baseUrl
validateIncomingBody
validateIncomingParameters
validateOutgoingBody
validateOutgoingParameters
and maybe also
incomingBodyAsRaw
outgoingBodyAsRaw
This argument may be omitted! Then a default configuration will be used.
credentials is an object itself. It might be a good idea to flatten this object in to the configuration object. So if we have a security requirement that is calles apiKey, then apiKey would be a configuration item in the configuration.
Later also
middleware
We can configure global middleware and local middleware this way.
This is always the last function argument. It should include the following configuration items
and maybe also
This argument may be omitted! Then a default configuration will be used.
credentials is an object itself. It might be a good idea to flatten this object in to the configuration object. So if we have a security requirement that is calles apiKey, then apiKey would be a configuration item in the configuration.
Later also
We can configure global middleware and local middleware this way.