Skip to Content

setNamespace()

Sets the API namespace used as the path prefix in every request URL.

Combined with host, this forms the Axios baseURL: {host}/{namespace}. Defaults to 'api/v1'.

Kind: global function

ParamTypeDescription
namespacestringThe namespace (e.g. 'api/v2').

Example

ARM.setNamespace('api/v2') // All subsequent requests go to https://api.example.com/api/v2/...
Last updated on