mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
improve javadoc for webservice documentation
This commit is contained in:
@@ -104,12 +104,18 @@ public class GroupResource
|
|||||||
//~--- methods --------------------------------------------------------------
|
//~--- methods --------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* Creates a new group.<br />
|
||||||
|
* This method requires admin privileges.<br />
|
||||||
|
* <br />
|
||||||
|
* Status codes:
|
||||||
|
* <ul>
|
||||||
|
* <li>201 create success</li>
|
||||||
|
* <li>403 forbidden, the current user has no admin privileges</li>
|
||||||
|
* <li>500 internal server error</li>
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
*
|
* @param uriInfo current uri informations
|
||||||
*
|
* @param group the group to be created
|
||||||
* @param uriInfo
|
|
||||||
* @param group
|
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -122,10 +128,17 @@ public class GroupResource
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* Deletes a group.<br />
|
||||||
|
* This method requires admin privileges.<br />
|
||||||
|
* <br />
|
||||||
|
* Status codes:
|
||||||
|
* <ul>
|
||||||
|
* <li>201 delete success</li>
|
||||||
|
* <li>403 forbidden, the current user has no admin privileges</li>
|
||||||
|
* <li>500 internal server error</li>
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
*
|
* @param name the name of the group to delete.
|
||||||
* @param name
|
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -138,12 +151,19 @@ public class GroupResource
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* Modifies the given group.<br />
|
||||||
|
* This method requires admin privileges.<br />
|
||||||
|
* <br />
|
||||||
|
* Status codes:
|
||||||
|
* <ul>
|
||||||
|
* <li>201 update successful</li>
|
||||||
|
* <li>403 forbidden, the current user has no admin privileges</li>
|
||||||
|
* <li>500 internal server error</li>
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
*
|
* @param uriInfo current uri informations
|
||||||
* @param uriInfo
|
* @param name name of the group to be modified
|
||||||
* @param name
|
* @param group group object to modify
|
||||||
* @param group
|
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -160,13 +180,21 @@ public class GroupResource
|
|||||||
//~--- get methods ----------------------------------------------------------
|
//~--- get methods ----------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* Returns a group.<br />
|
||||||
|
* This method requires admin privileges.<br />
|
||||||
|
* <br />
|
||||||
|
* Status codes:
|
||||||
|
* <ul>
|
||||||
|
* <li>200 get successful</li>
|
||||||
|
* <li>403 forbidden, the current user has no admin privileges</li>
|
||||||
|
* <li>404 not found, no group with the specified id/name available</li>
|
||||||
|
* <li>500 internal server error</li>
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
|
* @param request the current request
|
||||||
|
* @param id the id/name of the group
|
||||||
*
|
*
|
||||||
* @param request
|
* @return the {@link Group} with the specified id
|
||||||
* @param id
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
@GET
|
@GET
|
||||||
@Path("{id}")
|
@Path("{id}")
|
||||||
@@ -190,14 +218,21 @@ public class GroupResource
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* Returns all groups.<br />
|
||||||
|
* This method requires admin privileges.<br />
|
||||||
|
* <br />
|
||||||
|
* Status codes:
|
||||||
|
* <ul>
|
||||||
|
* <li>200 get successful</li>
|
||||||
|
* <li>403 forbidden, the current user has no admin privileges</li>
|
||||||
|
* <li>500 internal server error</li>
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
*
|
* @param request the current request
|
||||||
* @param request
|
* @param start the start value for paging
|
||||||
* @param start
|
* @param limit the limit value for paging
|
||||||
* @param limit
|
* @param sortby sort parameter
|
||||||
* @param sortby
|
* @param desc sort direction desc or aesc
|
||||||
* @param desc
|
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user