Assimilates User and Group REST Resource Annotations and docs some more

This commit is contained in:
Johannes Schnatterer
2018-06-27 14:38:39 +02:00
parent 2b2834b2a9
commit 38a32e4e2a
3 changed files with 3 additions and 3 deletions

View File

@@ -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"),

View File

@@ -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"),

View File

@@ -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"),