From 894c838277b8a147da9557ceb08b74ac1d5cf571 Mon Sep 17 00:00:00 2001 From: "Jeevanandam M." Date: Tue, 22 Jul 2014 14:22:24 -0700 Subject: [PATCH 01/13] added note for api v1 only in the readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 67a2d65..9ff359a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -DigitalOcean API Client in Java -------------------------------- +DigitalOcean API Client in Java (for v1 only) +--------------------------------------------- [![Build Status](https://travis-ci.org/jeevatkm/digitalocean-api-java.svg?branch=master)](https://travis-ci.org/jeevatkm/digitalocean-api-java) Welcome to DigitalOcean's API Client written in Java. I have created a simple and meaningful wrapper methods for DigitalOcean's API. All of the RESTful that you find in [DigitalOcean API's][1] will be made available via simple java method(s). @@ -182,4 +182,4 @@ See [LICENSE.txt][6] [18]: https://github.com/jeevatkm/digitalocean-api-java/issues/6 [19]: https://github.com/jeevatkm/digitalocean-api-java/issues/7 [20]: https://github.com/jeevatkm/digitalocean-api-java/issues/9 -[21]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.5/com/myjeeva/digitalocean/pojo/DropletStatus.html \ No newline at end of file +[21]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.5/com/myjeeva/digitalocean/pojo/DropletStatus.html From d4302b6126efe30a9e307ff1237a47db9b900af7 Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Tue, 22 Jul 2014 21:02:22 -0700 Subject: [PATCH 02/13] added v1 path to apiHost --- .../java/com/myjeeva/digitalocean/impl/DigitalOceanClient.java | 2 +- .../java/com/myjeeva/digitalocean/DigitalOceanMockTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/myjeeva/digitalocean/impl/DigitalOceanClient.java b/src/main/java/com/myjeeva/digitalocean/impl/DigitalOceanClient.java index 652a19f..f7dbdba 100644 --- a/src/main/java/com/myjeeva/digitalocean/impl/DigitalOceanClient.java +++ b/src/main/java/com/myjeeva/digitalocean/impl/DigitalOceanClient.java @@ -88,7 +88,7 @@ public class DigitalOceanClient implements DigitalOcean, Constants { /** * DigitalOcean API Host is api.digitalocean.com */ - private String apiHost = "api.digitalocean.com"; + private String apiHost = "api.digitalocean.com/v1"; /** * Constructor for initializing DigitalOcean Client diff --git a/src/test/java/com/myjeeva/digitalocean/DigitalOceanMockTest.java b/src/test/java/com/myjeeva/digitalocean/DigitalOceanMockTest.java index a4cc06f..2a69963 100644 --- a/src/test/java/com/myjeeva/digitalocean/DigitalOceanMockTest.java +++ b/src/test/java/com/myjeeva/digitalocean/DigitalOceanMockTest.java @@ -33,7 +33,7 @@ void validate(HttpUriRequest httpUriRequest) throws MalformedURLException, URISyntaxException { assertEquals( new URL( - "https://api.digitalocean.com/droplets/1234/snapshot/?client_id=id&api_key=key&name=snapshot-name") + "https://api.digitalocean.com/v1/droplets/1234/snapshot/?client_id=id&api_key=key&name=snapshot-name") .toURI(), httpUriRequest.getURI()); } })); From 3f1606fe3fb67b248c503ef6044eee6e6bbe41af Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Tue, 22 Jul 2014 21:15:28 -0700 Subject: [PATCH 03/13] [maven-release-plugin] prepare release digitalocean-api-client-1.6 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c758166..f01aee4 100755 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ digitalocean-api-client jar DigitalOcean API Client in Java - 1.6-SNAPSHOT + 1.6 Project of DigitalOcean API Client in Java http://myjeeva.com From 3dc90fd2f2a37c76c1f5371e40c25bda332053c9 Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Tue, 22 Jul 2014 21:15:31 -0700 Subject: [PATCH 04/13] [maven-release-plugin] prepare for next development iteration --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f01aee4..e3527cf 100755 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ digitalocean-api-client jar DigitalOcean API Client in Java - 1.6 + 1.7-SNAPSHOT Project of DigitalOcean API Client in Java http://myjeeva.com From 7b218b1ea47dc2e462b37935c53c174874277081 Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Tue, 22 Jul 2014 22:02:10 -0700 Subject: [PATCH 05/13] readme updated --- README.md | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 9ff359a..21c0859 100644 --- a/README.md +++ b/README.md @@ -7,22 +7,22 @@ Welcome to DigitalOcean's API Client written in Java. I have created a simple an > Simple and Lightweight Library for Enterprise Application/Utilities Integration How to make use of digitalocean-api-client? ------------------------------------- +------------------------------------------- * **Application/Project Dependencies** * Maven dependency
<dependency>
     		<groupId>com.myjeeva.digitalocean</groupId>
     		<artifactId>digitalocean-api-client</artifactId>
-    		<version>1.5</version>
+    		<version>1.6</version>
 		</dependency>
* Grails dependency -
compile 'com.myjeeva.digitalocean:digitalocean-api-client:1.5'
+	
compile 'com.myjeeva.digitalocean:digitalocean-api-client:1.6'
 	* Groovy Grape
 	
@Grapes( 
-@Grab(group='com.myjeeva.digitalocean', module='digitalocean-api-client', version='1.5') 
+@Grab(group='com.myjeeva.digitalocean', module='digitalocean-api-client', version='1.6') 
 )
* Scala SBT -
libraryDependencies += "com.myjeeva.digitalocean" % "digitalocean-api-client" % "1.5"
+
libraryDependencies += "com.myjeeva.digitalocean" % "digitalocean-api-client" % "1.6"
* **For using Snapshot Releases available from [OSS - Sonatype Snapshot Repo][4]**
Follow above application/project dependencies guidelines and then
@@ -50,6 +50,9 @@ I have been skipping below three functionality for while, kindly let me know if
 
 * * *
 
+* **Released in v1.6**
+	* Added support for v1 path in the host URI [#12][22]
+	
 * **Released in v1.5**
 	* Added more user-friendly error message for 404 responses by pulse00 [#6][18]
 	* Added [DropletStatus][21] and Added few handy methods in Droplet class by pulse00 [#7][19]
@@ -163,18 +166,18 @@ See [LICENSE.txt][6]
 
 
 [1]: https://api.digitalocean.com/
-[2]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.5/
+[2]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/
 [3]: https://github.com/jeevatkm/digitalocean-api-java/issues
 [4]: https://oss.sonatype.org/content/repositories/snapshots/com/myjeeva/digitalocean/digitalocean-api-client/
 [5]: http://myjeeva.com
 [6]: https://github.com/jeevatkm/digitalocean-api-java/blob/master/LICENSE.txt
 [7]: https://github.com/jeevatkm/digitalocean-api-java/blob/master/src/test/java/com/myjeeva/digitalocean/DigitalOceanIntegrationTest.java
-[8]: http://search.maven.org/remotecontent?filepath=com/myjeeva/digitalocean/digitalocean-api-client/1.5/digitalocean-api-client-1.5.jar
-[9]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.5/com/myjeeva/digitalocean/pojo/Event.html
-[10]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.5/com/myjeeva/digitalocean/pojo/Backup.html
-[11]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.5/com/myjeeva/digitalocean/pojo/Snapshot.html
-[12]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.5/com/myjeeva/digitalocean/pojo/Droplet.html
-[13]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.5/com/myjeeva/digitalocean/pojo/Response.html
+[8]: http://search.maven.org/remotecontent?filepath=com/myjeeva/digitalocean/digitalocean-api-client/1.6/digitalocean-api-client-1.6.jar
+[9]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/Event.html
+[10]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/Backup.html
+[11]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/Snapshot.html
+[12]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/Droplet.html
+[13]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/Response.html
 [14]: https://github.com/jeevatkm/digitalocean-api-java/issues/1
 [15]: https://github.com/jeevatkm/digitalocean-api-java/issues/5
 [16]: https://github.com/jeevatkm/digitalocean-api-java/issues/3
@@ -182,4 +185,5 @@ See [LICENSE.txt][6]
 [18]: https://github.com/jeevatkm/digitalocean-api-java/issues/6
 [19]: https://github.com/jeevatkm/digitalocean-api-java/issues/7
 [20]: https://github.com/jeevatkm/digitalocean-api-java/issues/9
-[21]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.5/com/myjeeva/digitalocean/pojo/DropletStatus.html
+[21]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/DropletStatus.html
+[22]: https://github.com/jeevatkm/digitalocean-api-java/issues/12

From 565a6f11446a1fdf462c3890ba8de8bb9e61d3a1 Mon Sep 17 00:00:00 2001
From: "Jeevanandam M." 
Date: Sat, 2 Aug 2014 12:40:38 -0700
Subject: [PATCH 06/13] Addd api-v1 into travis build

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index d91a233..25f7285 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,4 +8,4 @@ jdk:
 branches:
   only:
     - master
-    - v1.5
+    - api-v1

From b04bfa630385d27ac35f82a7d7df2a5863605702 Mon Sep 17 00:00:00 2001
From: "Jeevanandam M." 
Date: Sat, 2 Aug 2014 12:43:26 -0700
Subject: [PATCH 07/13] Added travis build status for api-v1

---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 21c0859..161e61e 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 DigitalOcean API Client in Java (for v1 only)
 ---------------------------------------------
-[![Build Status](https://travis-ci.org/jeevatkm/digitalocean-api-java.svg?branch=master)](https://travis-ci.org/jeevatkm/digitalocean-api-java)
+[![Build Status](https://travis-ci.org/jeevatkm/digitalocean-api-java.svg?branch=api-v1)](https://travis-ci.org/jeevatkm/digitalocean-api-java)
 
 Welcome to DigitalOcean's API Client written in Java. I have created a simple and meaningful wrapper methods for DigitalOcean's API. All of the RESTful that you find in [DigitalOcean API's][1] will be made available via simple java method(s).
 
@@ -26,7 +26,7 @@ How to make use of digitalocean-api-client?
 
 * **For using Snapshot Releases available from [OSS - Sonatype Snapshot Repo][4]**
 
Follow above application/project dependencies guidelines and then
-just replace version number to 1.6-SNAPSHOT
+just replace version number to 1.7-SNAPSHOT
* **Need of jar, just click here [digitalocean-api-client-x.x.jar][8] - Maven Centeral Repository** From e6ec762d087a7fc03452e6d459db14d6907d97a0 Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Fri, 17 Oct 2014 10:35:12 -0700 Subject: [PATCH 08/13] Date format updated --- src/main/java/com/myjeeva/digitalocean/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/myjeeva/digitalocean/Utils.java b/src/main/java/com/myjeeva/digitalocean/Utils.java index f004594..186371a 100644 --- a/src/main/java/com/myjeeva/digitalocean/Utils.java +++ b/src/main/java/com/myjeeva/digitalocean/Utils.java @@ -50,7 +50,7 @@ public final class Utils implements Constants { public static Gson getGson() { if (null == gson) - gson = new GsonBuilder().setDateFormat("yyyy-mm-dd'T'HH:mm:ss'Z'").create(); + gson = new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").create(); return gson; } From 6fbfc102135379c26ae0d9a31e458db694447ad4 Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Fri, 17 Oct 2014 10:42:28 -0700 Subject: [PATCH 09/13] [maven-release-plugin] prepare release digitalocean-api-client-1.7 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e3527cf..091ca36 100755 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ digitalocean-api-client jar DigitalOcean API Client in Java - 1.7-SNAPSHOT + 1.7 Project of DigitalOcean API Client in Java http://myjeeva.com From 33c4c12e79fd2a81372315d19dc3c825780f1819 Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Fri, 17 Oct 2014 10:42:33 -0700 Subject: [PATCH 10/13] [maven-release-plugin] prepare for next development iteration --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 091ca36..d262e03 100755 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ digitalocean-api-client jar DigitalOcean API Client in Java - 1.7 + 1.8-SNAPSHOT Project of DigitalOcean API Client in Java http://myjeeva.com From 4b255fcfccd6325f380eefca3e0401e579061ac9 Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Fri, 17 Oct 2014 10:52:41 -0700 Subject: [PATCH 11/13] Updated a Readme for docs --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 161e61e..6f7d59b 100644 --- a/README.md +++ b/README.md @@ -13,25 +13,23 @@ How to make use of digitalocean-api-client?
<dependency>
     		<groupId>com.myjeeva.digitalocean</groupId>
     		<artifactId>digitalocean-api-client</artifactId>
-    		<version>1.6</version>
+    		<version>1.7</version>
 		</dependency>
* Grails dependency -
compile 'com.myjeeva.digitalocean:digitalocean-api-client:1.6'
+	
compile 'com.myjeeva.digitalocean:digitalocean-api-client:1.7'
 	* Groovy Grape
 	
@Grapes( 
-@Grab(group='com.myjeeva.digitalocean', module='digitalocean-api-client', version='1.6') 
+@Grab(group='com.myjeeva.digitalocean', module='digitalocean-api-client', version='1.7') 
 )
* Scala SBT -
libraryDependencies += "com.myjeeva.digitalocean" % "digitalocean-api-client" % "1.6"
+
libraryDependencies += "com.myjeeva.digitalocean" % "digitalocean-api-client" % "1.7"
* **For using Snapshot Releases available from [OSS - Sonatype Snapshot Repo][4]**
Follow above application/project dependencies guidelines and then
-just replace version number to 1.7-SNAPSHOT
+just replace version number to 1.8-SNAPSHOT
* **Need of jar, just click here [digitalocean-api-client-x.x.jar][8] - Maven Centeral Repository** -* **Clone/Download the repo [http://github.com/jeevatkm/digitalocean-api-java] and build it!** - Documentation ------------- @@ -49,6 +47,8 @@ I have been skipping below three functionality for while, kindly let me know if * Input Validation at API client level * * * +* **Released in v1.7** + * Maintenance release * **Released in v1.6** * Added support for v1 path in the host URI [#12][22] @@ -162,22 +162,22 @@ Jeevanandam M. - jeeva@myjeeva.com ([myjeeva.com][5]) License ------- -See [LICENSE.txt][6] +DigitalOcean API Client library released under [MIT LICENSE][6] [1]: https://api.digitalocean.com/ -[2]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/ +[2]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.7/ [3]: https://github.com/jeevatkm/digitalocean-api-java/issues [4]: https://oss.sonatype.org/content/repositories/snapshots/com/myjeeva/digitalocean/digitalocean-api-client/ [5]: http://myjeeva.com [6]: https://github.com/jeevatkm/digitalocean-api-java/blob/master/LICENSE.txt [7]: https://github.com/jeevatkm/digitalocean-api-java/blob/master/src/test/java/com/myjeeva/digitalocean/DigitalOceanIntegrationTest.java -[8]: http://search.maven.org/remotecontent?filepath=com/myjeeva/digitalocean/digitalocean-api-client/1.6/digitalocean-api-client-1.6.jar -[9]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/Event.html -[10]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/Backup.html -[11]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/Snapshot.html -[12]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/Droplet.html -[13]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/Response.html +[8]: http://search.maven.org/remotecontent?filepath=com/myjeeva/digitalocean/digitalocean-api-client/1.7/digitalocean-api-client-1.7.jar +[9]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.7/com/myjeeva/digitalocean/pojo/Event.html +[10]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.7/com/myjeeva/digitalocean/pojo/Backup.html +[11]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.7/com/myjeeva/digitalocean/pojo/Snapshot.html +[12]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.7/com/myjeeva/digitalocean/pojo/Droplet.html +[13]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.7/com/myjeeva/digitalocean/pojo/Response.html [14]: https://github.com/jeevatkm/digitalocean-api-java/issues/1 [15]: https://github.com/jeevatkm/digitalocean-api-java/issues/5 [16]: https://github.com/jeevatkm/digitalocean-api-java/issues/3 @@ -185,5 +185,5 @@ See [LICENSE.txt][6] [18]: https://github.com/jeevatkm/digitalocean-api-java/issues/6 [19]: https://github.com/jeevatkm/digitalocean-api-java/issues/7 [20]: https://github.com/jeevatkm/digitalocean-api-java/issues/9 -[21]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.6/com/myjeeva/digitalocean/pojo/DropletStatus.html +[21]: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.7/com/myjeeva/digitalocean/pojo/DropletStatus.html [22]: https://github.com/jeevatkm/digitalocean-api-java/issues/12 From d2a7e118320c79a5465513e636d7c06f4ade2a02 Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Sun, 6 Dec 2015 20:41:36 -0800 Subject: [PATCH 12/13] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6f7d59b..10e445d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -DigitalOcean API Client in Java (for v1 only) ---------------------------------------------- -[![Build Status](https://travis-ci.org/jeevatkm/digitalocean-api-java.svg?branch=api-v1)](https://travis-ci.org/jeevatkm/digitalocean-api-java) +# [API v1 End of Life by DO](https://developers.digitalocean.com/documentation/changelog/api-v1/api-v1-end-of-life/) as on Nov 9, 2015 + +DigitalOcean API Client in Java (for v1 only) [![Build Status](https://travis-ci.org/jeevatkm/digitalocean-api-java.svg?branch=api-v1)](https://travis-ci.org/jeevatkm/digitalocean-api-java) Welcome to DigitalOcean's API Client written in Java. I have created a simple and meaningful wrapper methods for DigitalOcean's API. All of the RESTful that you find in [DigitalOcean API's][1] will be made available via simple java method(s). From e4a2c3390553f15a1c5831a12787ec0a463882e3 Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Sun, 6 Dec 2015 20:49:53 -0800 Subject: [PATCH 13/13] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 10e445d..254e5e9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # [API v1 End of Life by DO](https://developers.digitalocean.com/documentation/changelog/api-v1/api-v1-end-of-life/) as on Nov 9, 2015 -DigitalOcean API Client in Java (for v1 only) [![Build Status](https://travis-ci.org/jeevatkm/digitalocean-api-java.svg?branch=api-v1)](https://travis-ci.org/jeevatkm/digitalocean-api-java) +**DigitalOcean API Client in Java (for v1 only)** + + Welcome to DigitalOcean's API Client written in Java. I have created a simple and meaningful wrapper methods for DigitalOcean's API. All of the RESTful that you find in [DigitalOcean API's][1] will be made available via simple java method(s).