The following script is part 1 and enables the addition of REST Operations to a REST Host for vFabric Application Director v5.2
var objProperties; objProperties = new Properties(); objProperties.put("GET-Applications", "/darwin/api/1.0/applications/page/{Page}/page-size/{PageSize}"); objProperties.put("GET-ApplicationVersion", "/darwin/api/1.0/application-versions/{ApplicationID}/page/{Page}/page-size/{PageSize}"); objProperties.put("GET-DeploymentProfiles", "/darwin/api/1.0/deployment-profiles/{ApplicationVersionID}/page/{Page}/page-size/{PageSize}"); objProperties.put("GET-DeploymentProfilesNodeInformation", "/darwin/api/1.0/deployment-profile/{DeploymentProfileID}/node-info"); objProperties.put("GET-Deployments", "/darwin/api/1.0/deployments/page/{Page}/page-size/{PageSize}"); objProperties.put("GET-DeploymentDetails", "/darwin/api/1.0/deployment/{DeploymentID}"); objProperties.put("GET-DeploymentsAcrossGroups", "/darwin/api/1.0/deployments/all-groups/page/{Page}/page-size/{PageSize}"); objProperties.put("GET-DeploymentProfileProperties", "/darwin/api/1.0/deployment-profile/{DeploymentProfileID}/deploy-props"); objProperties.put("GET-DeploymentsNodeInformation", "/darwin/api/1.0/deployment/{DeploymentID}/node-info"); objProperties.put("GET-DeploymentScaleOutProperties", "/darwin/api/1.0/deployment/{DeploymentID}/scale-out-props"); objProperties.put("GET-DeploymentConfigUpdateProperties", "/darwin/api/1.0/deployment/{DeploymentID}/config-update-props"); objProperties.put("POST-DeploymentProfileSchedule", "/darwin/api/1.0/deployment-profile/{DeploymentProfileID}/action/deploy"); objProperties.put("POST-DeploymentScaleOut", "/darwin/api/1.0/deployment/{DeploymentID}/action/scale-out"); objProperties.put("POST-DeploymentConfigUpdateProperties", "/darwin/api/1.0/deployment/{DeploymentID}/config-update-props"); objProperties.put("POST-DeploymentConfigUpdate", "/darwin/api/1.0/deployment/{DeploymentID}/config-update"); objProperties.put("POST-DeploymentTeardown", "/darwin/api/1.0/deployment/{DeploymentID}/action/teardown"); objProperties.put("POST-Export", "/darwin/api/1.0/action/export"); objProperties.put("POST-Import", "/darwin/api/1.0/action/import"); objProperties.put("POST-NotificationRegistration", "/darwin/api/1.0/notifications/register"); objProperties.put("DELETE-DeploymentDelete", "/darwin/api/1.0/deployment/{DeploymentID}/action/delete");