Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/authors", produces = "application/hal+json")
@RequestMapping(value = "/authors", produces = { "application/hal+json", "application/json" })
public class AuthorController {

private UserService userService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import java.util.stream.Collectors;

@RestController
@RequestMapping(value = "/candidates", produces = "application/hal+json")
@RequestMapping(value = "/candidates", produces = { "application/hal+json", "application/json" })
public class CandidateController {

Logger logger = LoggerFactory.getLogger(CandidateController.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
@ConditionalOnExpression(value = "false") // TODO: set to true if the design models should be used again
@CommonsLog
@CrossOrigin(allowedHeaders = "*", origins = "*")
@RequestMapping(value = "/design-models", produces = "application/hal+json")
@RequestMapping(value = "/design-models", produces = { "application/hal+json", "application/json" })
public class DesignModelController {

private final DesignModelService designModelService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/issues", produces = "application/hal+json")
@RequestMapping(value = "/issues", produces = { "application/hal+json", "application/json" })
public class IssueController {

Logger logger = LoggerFactory.getLogger(IssueController.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

@RestController
@CrossOrigin(allowedHeaders = "*", origins = "*")
@RequestMapping(value = "/", produces = "application/hal+json")
@RequestMapping(value = "/", produces = { "application/hal+json", "application/json" })
public class PatternController {

final private static Logger LOG = LoggerFactory.getLogger(PatternController.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

@RestController
@CrossOrigin(allowedHeaders = "*", origins = "*")
@RequestMapping(value = "/patternLanguages", produces = "application/hal+json")
@RequestMapping(value = "/patternLanguages", produces = { "application/hal+json", "application/json" })
public class PatternLanguageController {

private final PatternLanguageService patternLanguageService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

@RestController
@CrossOrigin(allowedHeaders = "*", origins = "*")
@RequestMapping(value = "/", produces = "application/hal+json")
@RequestMapping(value = "/", produces = { "application/hal+json", "application/json" })
public class PatternRelationDescriptorController {

private final PatternLanguageService patternLanguageService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

@RestController
@CrossOrigin(allowedHeaders = "*", origins = "*")
@RequestMapping(value = "/patternViews", produces = "application/hal+json")
@RequestMapping(value = "/patternViews", produces = { "application/hal+json", "application/json" })
public class PatternViewController {

private final PatternViewService patternViewService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/users", produces = "application/hal+json")
@RequestMapping(value = "/users", produces = { "application/hal+json", "application/json" })
public class UserController {

Logger logger = LoggerFactory.getLogger(UserController.class);
Expand Down