Discovery API

Discovery API

To start the process you need to call the discovery API by passing a few parameters to fetch Identity Endpoint. For this, You need CPID, IOTConnect-supported language, version, and environment. If you do not find the discovery URL, You can find your associated discovery URL in the Key Vault of your account IoTConnect portal “Settings -> Key vault”.

CPID Based
  Base_Url : URL_FROM_KEY_VAULT
  COMPANY_CPID : A string represents your company id, you can get form IOTConnect Portal.
  LANG : Possible values are M_JAVA, M_C, M_Python, M_Node & M_C#
  COMPANY_ENVIRONMENT : Connect with IoTConnect support for Instance or Environment. 
  Endpoint :[Base_Url]/api/sdk/cpid/[COMPANY_CPID]/lang/[LANG]/ver/2.0/env/[COMPANY_ENVIRONMENT]
  Method : GET
  Base_Url : URL_FROM_KEY_VAULT
  COMPANY_CPID : A string represents your company id, you can get form IOTConnect Portal.
  LANG : Possible values are M_JAVA, M_C, M_Python, M_Node & M_C#
  COMPANY_ENVIRONMENT : Connect with IoTConnect support for Instance or Environment. 
  Endpoint :[Base_Url]/api/sdk/cpid/[COMPANY_CPID]/lang/[LANG]/ver/2.0/env/[COMPANY_ENVIRONMENT]
  Method : GET

Example:

Request:
	http://URL_FROM_KEY_VAULT/api/sdk/cpid/[COMPANY_CPID]/lang/[LANG]/ver/2.0/env/[COMPANY_ENVIRONMENT]
Request:
	http://URL_FROM_KEY_VAULT/api/sdk/cpid/[COMPANY_CPID]/lang/[LANG]/ver/2.0/env/[COMPANY_ENVIRONMENT]

Response:

{ 
  "baseUrl": "", // A string represents the base url of identity API 
  "logInfo": "" 
}
{ 
  "baseUrl": "", // A string represents the base url of identity API 
  "logInfo": "" 
}