2023-01-30 20:00:54 +03:00
|
|
|
{
|
|
|
|
"properties": {
|
|
|
|
"connectionParameters": {
|
|
|
|
"api_key": {
|
|
|
|
"type": "securestring",
|
|
|
|
"uiDefinition": {
|
|
|
|
"displayName": "Hub API Key",
|
|
|
|
"description": "The Hub API Key to request projects and methods metadata",
|
|
|
|
"tooltip": "Provide your Hub API Key",
|
|
|
|
"constraints": {
|
|
|
|
"tabIndex": 2,
|
|
|
|
"clearText": false,
|
|
|
|
"required": "true"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2024-04-01 19:02:03 +03:00
|
|
|
"hub_url": {
|
|
|
|
"type": "string",
|
|
|
|
"uiDefinition": {
|
|
|
|
"displayName": "Hub URL (Optional)",
|
|
|
|
"description": "Define Hub URL when the Hub is installed on premise and not using OpenLegacy SaaS solution",
|
|
|
|
"tooltip": "Provide a Hub URL (Optional)",
|
|
|
|
"constraints": {
|
|
|
|
"tabIndex": 3,
|
|
|
|
"clearText": false,
|
|
|
|
"required": "false"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-30 20:00:54 +03:00
|
|
|
"appBaseUrl": {
|
|
|
|
"type": "string",
|
|
|
|
"uiDefinition": {
|
|
|
|
"displayName": "Deployed Application Base Url",
|
|
|
|
"description": "The Base URL to deployed application",
|
|
|
|
"tooltip": "Provide a Base URL",
|
|
|
|
"constraints": {
|
2024-04-01 19:02:03 +03:00
|
|
|
"tabIndex": 4,
|
2023-01-30 20:00:54 +03:00
|
|
|
"clearText": false,
|
|
|
|
"required": "true"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"appRuntimeKey": {
|
|
|
|
"type": "securestring",
|
|
|
|
"uiDefinition": {
|
|
|
|
"displayName": "Runtime API Key",
|
2024-04-01 19:02:03 +03:00
|
|
|
"description": "The Runtime API Key to authorize in deployed application (Optional)",
|
|
|
|
"tooltip": "The Runtime API Key is mandatory when API is hosted on OpenLegacy Cloud",
|
2023-01-30 20:00:54 +03:00
|
|
|
"constraints": {
|
2024-04-01 19:02:03 +03:00
|
|
|
"tabIndex": 5,
|
2023-01-30 20:00:54 +03:00
|
|
|
"clearText": false,
|
2024-04-01 19:02:03 +03:00
|
|
|
"required": "false"
|
2023-01-30 20:00:54 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"iconBrandColor": "#f98937",
|
|
|
|
"capabilities": [],
|
|
|
|
"policyTemplateInstances": [
|
2024-04-01 19:02:03 +03:00
|
|
|
{
|
|
|
|
"templateId": "dynamichosturl",
|
|
|
|
"title": "ChangeHubUrl",
|
|
|
|
"parameters": {
|
|
|
|
"x-ms-apimTemplateParameter.urlTemplate": "@connectionParameters('hub_url','https://api.ol-hub.com')",
|
|
|
|
"x-ms-apimTemplate-operationName": [
|
|
|
|
"GetAllProjects",
|
|
|
|
"GetMethodsForContract",
|
|
|
|
"GetMethodOpenApiSpec"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"templateId": "setheader",
|
|
|
|
"title": "SetHubUrl",
|
|
|
|
"parameters": {
|
|
|
|
"x-ms-apimTemplateParameter.name": "ol-hub-url",
|
|
|
|
"x-ms-apimTemplateParameter.value": "@connectionParameters('hub_url','https://api.ol-hub.com')",
|
|
|
|
"x-ms-apimTemplateParameter.existsAction": "override",
|
|
|
|
"x-ms-apimTemplate-policySection": "Request",
|
|
|
|
"x-ms-apimTemplate-operationName": [
|
|
|
|
"MfCicsCobol",
|
|
|
|
"MfCtgCobol",
|
|
|
|
"MfImsCobol",
|
|
|
|
"MfNatural",
|
|
|
|
"MfVsamCics",
|
|
|
|
"Mf3270Screens",
|
|
|
|
"MfMq"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-30 20:00:54 +03:00
|
|
|
{
|
|
|
|
"templateId": "dynamichosturl",
|
|
|
|
"title": "ChangeHostUrl",
|
|
|
|
"parameters": {
|
|
|
|
"x-ms-apimTemplateParameter.urlTemplate": "@connectionParameters('appBaseUrl')",
|
|
|
|
"x-ms-apimTemplate-operationName": [
|
|
|
|
"MfCicsCobol",
|
|
|
|
"MfCtgCobol",
|
|
|
|
"MfImsCobol",
|
|
|
|
"MfNatural",
|
|
|
|
"MfVsamCics",
|
|
|
|
"Mf3270Screens",
|
|
|
|
"MfMq"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"templateId": "setheader",
|
|
|
|
"title": "SetHubApiKey",
|
|
|
|
"parameters": {
|
|
|
|
"x-ms-apimTemplateParameter.name": "ol-hub-x-api-key",
|
|
|
|
"x-ms-apimTemplateParameter.value": "@connectionParameters('api_key','')",
|
|
|
|
"x-ms-apimTemplateParameter.existsAction": "override",
|
|
|
|
"x-ms-apimTemplate-policySection": "Request",
|
|
|
|
"x-ms-apimTemplate-operationName": [
|
|
|
|
"MfCicsCobol",
|
|
|
|
"MfCtgCobol",
|
|
|
|
"MfImsCobol",
|
|
|
|
"MfNatural",
|
|
|
|
"MfVsamCics",
|
|
|
|
"Mf3270Screens",
|
|
|
|
"MfMq"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"templateId": "setheader",
|
|
|
|
"title": "SetRuntimeApiKey",
|
|
|
|
"parameters": {
|
|
|
|
"x-ms-apimTemplateParameter.name": "x-api-key",
|
|
|
|
"x-ms-apimTemplateParameter.value": "@connectionParameters('appRuntimeKey','')",
|
|
|
|
"x-ms-apimTemplateParameter.existsAction": "override",
|
|
|
|
"x-ms-apimTemplate-policySection": "Request",
|
|
|
|
"x-ms-apimTemplate-operationName": [
|
|
|
|
"MfCicsCobol",
|
|
|
|
"MfCtgCobol",
|
|
|
|
"MfImsCobol",
|
|
|
|
"MfNatural",
|
|
|
|
"MfVsamCics",
|
|
|
|
"Mf3270Screens",
|
|
|
|
"MfMq"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"publisher": "OpenLegacy Technologies Inc.",
|
|
|
|
"stackOwner": "OpenLegacy Technologies Inc."
|
|
|
|
}
|
|
|
|
}
|