Updated connector definition and properties (#1680)
* Added JBHunt connector * Updated readme file and corrected indentation in swagger and apiProperties.json files * Update apiDefinition.swagger.json * Updated connector definition and properties Updated connector definition and properties * Update apiProperties.json updated redirect url in template * Update apiDefinition.swagger.json Co-authored-by: Amjed Ayoub <97551789+Amjed-Ayoub@users.noreply.github.com>
This commit is contained in:
Родитель
da71ddb15c
Коммит
62ac00021e
|
@ -1279,8 +1279,8 @@
|
|||
"type": "object",
|
||||
"properties": {
|
||||
"value": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"type": "number",
|
||||
"format": "float",
|
||||
"description": "value"
|
||||
},
|
||||
"currencyCode": {
|
||||
|
@ -1346,8 +1346,8 @@
|
|||
"description": "transportationMode"
|
||||
},
|
||||
"totalMiles": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"type": "number",
|
||||
"format": "float",
|
||||
"description": "totalMiles"
|
||||
},
|
||||
"scacCode": {
|
||||
|
@ -2875,8 +2875,20 @@
|
|||
},
|
||||
"parameters": {},
|
||||
"responses": {},
|
||||
"securityDefinitions": {},
|
||||
"security": [],
|
||||
"securityDefinitions": {
|
||||
"oauth2": {
|
||||
"type": "oauth2",
|
||||
"flow": "accessCode",
|
||||
"authorizationUrl": "https://oauth2-tst.nonprod.jbhunt.com/oauth2provider/oauth/authorize",
|
||||
"tokenUrl": "https://oauth2-tst.nonprod.jbhunt.com/oauth2provider/oauth/token",
|
||||
"scopes": {}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"oauth2": []
|
||||
}
|
||||
],
|
||||
"tags": [],
|
||||
"x-ms-connector-metadata": [
|
||||
{
|
||||
|
@ -2892,4 +2904,4 @@
|
|||
"propertyValue": "Productivity"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,71 +1,64 @@
|
|||
{
|
||||
"properties": {
|
||||
"connectionParameters": {
|
||||
"environment": {
|
||||
"type": "string",
|
||||
"uiDefinition": {
|
||||
"displayName": "Environment: Sandbox or Production",
|
||||
"description": "JBHunt Sandbox environment or Production environment",
|
||||
"tooltip": "Select JBHunt sandbox environment or production environment to connect",
|
||||
"constraints": {
|
||||
"allowedValues": [
|
||||
{
|
||||
"text": "Production",
|
||||
"value": "https://api.jbhunt.com"
|
||||
},
|
||||
{
|
||||
"text": "Sandbox",
|
||||
"value": "https://api.nonprod.jbhunt.com"
|
||||
}
|
||||
],
|
||||
"required": "true"
|
||||
"token": {
|
||||
"type": "oauthSetting",
|
||||
"oAuthSettings": {
|
||||
"identityProvider": "oauth2generic",
|
||||
"clientId": "dummy",
|
||||
"scopes": [],
|
||||
"redirectMode": "Global",
|
||||
"properties": {
|
||||
"IsFirstParty": "False",
|
||||
"IsOnbehalfofLoginSupported": false
|
||||
},
|
||||
"customParameters": {
|
||||
"authorizationUrlQueryStringTemplate": {
|
||||
"value": "?response_type=code&client_id={AppClientId}&redirect_uri={RedirectUrl}&state={State}"
|
||||
},
|
||||
"authorizationUrlTemplate": {
|
||||
"value": "https://oauth2-tst.nonprod.jbhunt.com/oauth2provider/oauth/authorize"
|
||||
},
|
||||
"refreshBodyTemplate": {
|
||||
"value": "grant_type=refresh_token&refresh_token={RefreshToken}&client_id={AppClientId}&client_secret={AppClientSecret}&redirect_uri={RedirectUrl}"
|
||||
},
|
||||
"refreshUrlTemplate": {
|
||||
"value": "https://oauth2-tst.nonprod.jbhunt.com/oauth2provider/oauth/token"
|
||||
},
|
||||
"scopeListDelimiter": {
|
||||
"value": ""
|
||||
},
|
||||
"tokenBodyTemplate": {
|
||||
"value": "grant_type=authorization_code&code={code}&redirect_uri={RedirectUrl}&client_id={AppClientId}&client_secret={AppClientSecret}"
|
||||
},
|
||||
"tokenUrlTemplate": {
|
||||
"value": "https://oauth2-tst.nonprod.jbhunt.com/oauth2provider/oauth/token"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"client_id": {
|
||||
"token:AppClientId": {
|
||||
"type": "string",
|
||||
"uiDefinition": {
|
||||
"constraints": {
|
||||
"tabIndex": 2,
|
||||
"required": "true"
|
||||
},
|
||||
"description": "Client Application Id",
|
||||
"displayName": "Client Application Id",
|
||||
"tooltip": "Client Id of Application registered with JBHunt",
|
||||
"constraints": {
|
||||
"required": "true"
|
||||
}
|
||||
"tooltip": "Client Id of Application registered with Uber"
|
||||
}
|
||||
},
|
||||
"client_secret": {
|
||||
"token:AppClientSecret": {
|
||||
"type": "securestring",
|
||||
"uiDefinition": {
|
||||
"constraints": {
|
||||
"tabIndex": 3,
|
||||
"required": "true"
|
||||
},
|
||||
"description": "Client Application Secret",
|
||||
"displayName": "Client Application Secret",
|
||||
"tooltip": "Secret of Client Application registered with JBHunt",
|
||||
"constraints": {
|
||||
"clearText": false,
|
||||
"required": "true"
|
||||
}
|
||||
}
|
||||
},
|
||||
"username": {
|
||||
"type": "string",
|
||||
"uiDefinition": {
|
||||
"displayName": "Username",
|
||||
"description": "Username of JBHunt account",
|
||||
"tooltip": "Provide JBHunt username",
|
||||
"constraints": {
|
||||
"required": "true"
|
||||
}
|
||||
}
|
||||
},
|
||||
"password": {
|
||||
"type": "securestring",
|
||||
"uiDefinition": {
|
||||
"displayName": "Password",
|
||||
"description": "Password of JBHunt account",
|
||||
"tooltip": "Provide JBHunt account password",
|
||||
"constraints": {
|
||||
"clearText": false,
|
||||
"required": "true"
|
||||
}
|
||||
"tooltip": "Secret of Client Application registered with Uber"
|
||||
}
|
||||
},
|
||||
"ordersapikey": {
|
||||
|
@ -118,46 +111,6 @@
|
|||
"x-ms-apimTemplate-policySection": "Request"
|
||||
}
|
||||
},
|
||||
{
|
||||
"templateId": "setheader",
|
||||
"title": "Set HTTP header- Client ID",
|
||||
"parameters": {
|
||||
"x-ms-apimTemplateParameter.name": "client_id",
|
||||
"x-ms-apimTemplateParameter.value": "@connectionParameters('client_id','')",
|
||||
"x-ms-apimTemplateParameter.existsAction": "override",
|
||||
"x-ms-apimTemplate-policySection": "Request"
|
||||
}
|
||||
},
|
||||
{
|
||||
"templateId": "setheader",
|
||||
"title": "Set HTTP header - Client Secret",
|
||||
"parameters": {
|
||||
"x-ms-apimTemplateParameter.name": "client_secret",
|
||||
"x-ms-apimTemplateParameter.value": "@connectionParameters('client_secret','')",
|
||||
"x-ms-apimTemplateParameter.existsAction": "override",
|
||||
"x-ms-apimTemplate-policySection": "Request"
|
||||
}
|
||||
},
|
||||
{
|
||||
"templateId": "setheader",
|
||||
"title": "Set HTTP header - Username",
|
||||
"parameters": {
|
||||
"x-ms-apimTemplateParameter.name": "username",
|
||||
"x-ms-apimTemplateParameter.value": "@connectionParameters('username','')",
|
||||
"x-ms-apimTemplateParameter.existsAction": "override",
|
||||
"x-ms-apimTemplate-policySection": "Request"
|
||||
}
|
||||
},
|
||||
{
|
||||
"templateId": "setheader",
|
||||
"title": "Set HTTP header - Password",
|
||||
"parameters": {
|
||||
"x-ms-apimTemplateParameter.name": "password",
|
||||
"x-ms-apimTemplateParameter.value": "@connectionParameters('password','')",
|
||||
"x-ms-apimTemplateParameter.existsAction": "override",
|
||||
"x-ms-apimTemplate-policySection": "Request"
|
||||
}
|
||||
},
|
||||
{
|
||||
"templateId": "setheader",
|
||||
"title": "Set HTTP header - Orders",
|
||||
|
@ -196,13 +149,6 @@
|
|||
"Find_orders"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"templateId": "dynamichosturl",
|
||||
"title": "Choose Host for connection",
|
||||
"parameters": {
|
||||
"x-ms-apimTemplateParameter.urlTemplate": "@connectionParameters('environment')"
|
||||
}
|
||||
}
|
||||
],
|
||||
"publisher": "Microsoft",
|
||||
|
|
Загрузка…
Ссылка в новой задаче