dropletapi
Advanced tools
Comparing version 2.0.0 to 2.1.0
13
index.js
@@ -108,2 +108,15 @@ /*! | ||
/** | ||
* Delete a Droplet | ||
* | ||
* @No response body will be sent back, but the response code will indicate success. | ||
* Specifically, the response code will be a 204, which means that the action was successful with no returned body data. | ||
* | ||
* Api documentation: https://developers.digitalocean.com/#delete-a-droplet | ||
*/ | ||
DO.prototype.deleteDroplet = function(dropletID, callback) { | ||
makeRequest(rest.delete, this.baseUri + 'droplets/' + dropletID, {headers: {'Content-Type': 'application/json', 'Authorization': 'Bearer ' + this.token}}, callback); | ||
}; | ||
module.exports = DO; |
{ | ||
"name": "dropletapi", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Wrapper for the DigitalOcean API V2", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6034
99