change collection type hint from array of dto to CollectionDto

This commit is contained in:
Sebastian Sdorra
2018-08-02 13:20:37 +02:00
parent e7ca81a6f4
commit d49c07b992
3 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ public class GroupCollectionResource {
@GET @GET
@Path("") @Path("")
@Produces(VndMediaType.GROUP_COLLECTION) @Produces(VndMediaType.GROUP_COLLECTION)
@TypeHint(GroupDto[].class) @TypeHint(CollectionDto.class)
@StatusCodes({ @StatusCodes({
@ResponseCode(code = 200, condition = "success"), @ResponseCode(code = 200, condition = "success"),
@ResponseCode(code = 400, condition = "\"sortBy\" field unknown"), @ResponseCode(code = 400, condition = "\"sortBy\" field unknown"),

View File

@@ -40,7 +40,7 @@ public class RepositoryCollectionResource {
@GET @GET
@Path("") @Path("")
@Produces(VndMediaType.REPOSITORY_COLLECTION) @Produces(VndMediaType.REPOSITORY_COLLECTION)
@TypeHint(RepositoryDto[].class) @TypeHint(CollectionDto.class)
@StatusCodes({ @StatusCodes({
@ResponseCode(code = 200, condition = "success"), @ResponseCode(code = 200, condition = "success"),
@ResponseCode(code = 401, condition = "not authenticated / invalid credentials"), @ResponseCode(code = 401, condition = "not authenticated / invalid credentials"),

View File

@@ -42,7 +42,7 @@ public class UserCollectionResource {
@GET @GET
@Path("") @Path("")
@Produces(VndMediaType.USER_COLLECTION) @Produces(VndMediaType.USER_COLLECTION)
@TypeHint(UserDto[].class) @TypeHint(CollectionDto.class)
@StatusCodes({ @StatusCodes({
@ResponseCode(code = 200, condition = "success"), @ResponseCode(code = 200, condition = "success"),
@ResponseCode(code = 400, condition = "\"sortBy\" field unknown"), @ResponseCode(code = 400, condition = "\"sortBy\" field unknown"),