Comparing version 0.13.6 to 0.13.7
@@ -129,2 +129,23 @@ "use strict"; | ||
/** | ||
* Get an app | ||
* {@link http://apidocs.cloudfoundry.org/214/apps/retrieve_a_particular_app.html} | ||
* | ||
* @param {String} guid [App guid] | ||
* @return {JSON} [return a JSON response] | ||
*/ | ||
getApp (guid) { | ||
const url = `${this.API_URL}/v2/apps/${guid}`; | ||
const options = { | ||
method: "GET", | ||
url: url, | ||
headers: { | ||
Authorization: `${this.UAA_TOKEN.token_type} ${this.UAA_TOKEN.access_token}` | ||
} | ||
}; | ||
return this.REST.request(options, this.HttpStatus.OK, true); | ||
} | ||
/** | ||
@@ -215,3 +236,25 @@ * Get summary about an application | ||
} | ||
/** | ||
* Dissociate an Application from a Route. | ||
* {@link http://apidocs.cloudfoundry.org/214/apps/remove_route_from_the_app.html} | ||
* | ||
* @param {String} appGuid [App guid] | ||
* @param {String} routeGuid [Route guid] | ||
* @return {JSON} [description] | ||
*/ | ||
dissociateRoute (appGuid, routeGuid) { | ||
const url = `${this.API_URL}/v2/apps/${appGuid}/routes/${routeGuid}`; | ||
const options = { | ||
method: "DELETE", | ||
url: url, | ||
headers: { | ||
Authorization: `${this.UAA_TOKEN.token_type} ${this.UAA_TOKEN.access_token}` | ||
} | ||
}; | ||
return this.REST.request(options, this.HttpStatus.OK, true); | ||
} | ||
/** | ||
@@ -218,0 +261,0 @@ * Check resources |
@@ -61,3 +61,24 @@ "use strict"; | ||
} | ||
/** | ||
* Get a Organization | ||
* {@link http://apidocs.cloudfoundry.org/214/organizations/retrieve_a_particular_organization.html} | ||
* | ||
* @param {String} guid [Organization guid] | ||
* @return {JSON} [return a JSON response] | ||
*/ | ||
getOrganization (guid) { | ||
const url = `${this.API_URL}/v2/organizations/${guid}`; | ||
const options = { | ||
method: "GET", | ||
url: url, | ||
headers: { | ||
Authorization: `${this.UAA_TOKEN.token_type} ${this.UAA_TOKEN.access_token}` | ||
} | ||
}; | ||
return this.REST.request(options, this.HttpStatus.OK, true); | ||
} | ||
/** | ||
@@ -64,0 +85,0 @@ * Get summary from an Organization |
{ | ||
"name": "cf-client", | ||
"version": "0.13.6", | ||
"version": "0.13.7", | ||
"description": "A Cloud Foundry Client for Node.js", | ||
@@ -5,0 +5,0 @@ "author": "Juan Antonio Breña Moral <bren@juanantonio.info>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112554
2587