From c0a83d9fcf3521ef74ccaeee62d67f4543dc8cf4 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 3 Oct 2011 13:53:46 +0200 Subject: [PATCH] improve javadoc of PluginResource for the webservice documentation --- .../api/rest/resources/PluginResource.java | 80 +++++++++++++------ 1 file changed, 56 insertions(+), 24 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/PluginResource.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/PluginResource.java index 5374a27bca..628824c4fb 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/PluginResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/PluginResource.java @@ -86,10 +86,14 @@ public class PluginResource //~--- methods -------------------------------------------------------------- /** - * Method description + * Installs a plugin.
+ *
+ * * - * - * @param id + * @param id id of the plugin to be installed * * @return */ @@ -103,10 +107,14 @@ public class PluginResource } /** - * Method description + * Uninstalls a plugin.
+ *
+ * * - * - * @param id + * @param id id of the plugin to be uninstalled * * @return */ @@ -120,10 +128,14 @@ public class PluginResource } /** - * Method description + * Updates a plugin.
+ *
+ * * - * - * @param id + * @param id id of the plugin to be updated * * @return */ @@ -139,10 +151,14 @@ public class PluginResource //~--- get methods ---------------------------------------------------------- /** - * Method description + * Returns all plugins.
+ *
+ * * - * - * @return + * @return all plugins */ @GET @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) @@ -152,10 +168,14 @@ public class PluginResource } /** - * Method description + * Returns all available plugins.
+ *
+ * * - * - * @return + * @return all available plugins */ @GET @Path("available") @@ -166,10 +186,14 @@ public class PluginResource } /** - * Method description + * Returns all plugins which are available for update.
+ *
+ * * - * - * @return + * @return all plugins which are available for update */ @GET @Path("updates") @@ -180,10 +204,14 @@ public class PluginResource } /** - * Method description + * Returns all installed plugins.
+ *
+ * * - * - * @return + * @return all installed plugins */ @GET @Path("installed") @@ -194,10 +222,14 @@ public class PluginResource } /** - * Method description + * Returns all plugins for the overview.
+ *
+ * * - * - * @return + * @return all plugins for the overview */ @GET @Path("overview")