mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
Produce custom media type
This commit is contained in:
@@ -19,7 +19,7 @@ import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Singleton
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Produces("application/vnd.scmm-user+json")
|
||||
public class UserCollectionResource extends AbstractManagerResource<User, UserException> {
|
||||
private final UserDto2UserMapper dtoToUserMapper;
|
||||
private final User2UserDtoMapper userToDtoMapper;
|
||||
|
||||
@@ -17,7 +17,7 @@ import javax.ws.rs.core.*;
|
||||
import java.util.Collection;
|
||||
|
||||
@Singleton
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Produces("application/vnd.scmm-user+json")
|
||||
public class UserSubResource extends AbstractManagerResource<User, UserException> {
|
||||
private final UserDto2UserMapper dtoToUserMapper;
|
||||
private final User2UserDtoMapper userToDtoMapper;
|
||||
|
||||
Reference in New Issue
Block a user