mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
Assimilates User and Group REST Resource Annotations and docs some more
This commit is contained in:
@@ -26,7 +26,6 @@ import java.io.IOException;
|
||||
|
||||
import static sonia.scm.api.v2.resources.ResourceLinks.group;
|
||||
|
||||
@Produces(VndMediaType.GROUP_COLLECTION)
|
||||
public class GroupCollectionResource {
|
||||
|
||||
private static final int DEFAULT_PAGE_SIZE = 10;
|
||||
@@ -55,6 +54,7 @@ public class GroupCollectionResource {
|
||||
*/
|
||||
@GET
|
||||
@Path("")
|
||||
@Produces(VndMediaType.GROUP_COLLECTION)
|
||||
@TypeHint(GroupDto[].class)
|
||||
@StatusCodes({
|
||||
@ResponseCode(code = 200, condition = "success"),
|
||||
|
||||
@@ -26,7 +26,6 @@ import java.io.IOException;
|
||||
|
||||
import static sonia.scm.api.v2.resources.ResourceLinks.user;
|
||||
|
||||
@Produces(VndMediaType.USER_COLLECTION)
|
||||
public class UserCollectionResource {
|
||||
|
||||
private static final int DEFAULT_PAGE_SIZE = 10;
|
||||
@@ -56,6 +55,7 @@ public class UserCollectionResource {
|
||||
*/
|
||||
@GET
|
||||
@Path("")
|
||||
@Produces(VndMediaType.USER_COLLECTION)
|
||||
@TypeHint(UserDto[].class)
|
||||
@StatusCodes({
|
||||
@ResponseCode(code = 200, condition = "success"),
|
||||
|
||||
@@ -21,7 +21,6 @@ import javax.ws.rs.core.Request;
|
||||
import javax.ws.rs.core.Response;
|
||||
import javax.ws.rs.core.UriInfo;
|
||||
|
||||
@Produces(VndMediaType.USER)
|
||||
public class UserResource {
|
||||
|
||||
private final UserDtoToUserMapper dtoToUserMapper;
|
||||
@@ -47,6 +46,7 @@ public class UserResource {
|
||||
*/
|
||||
@GET
|
||||
@Path("")
|
||||
@Produces(VndMediaType.USER)
|
||||
@TypeHint(UserDto.class)
|
||||
@StatusCodes({
|
||||
@ResponseCode(code = 200, condition = "success"),
|
||||
|
||||
Reference in New Issue
Block a user