Skip to content

Commit

Permalink
Use application/hal+json by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaar, Bjørn-Andre committed Jan 16, 2024
1 parent bd880ec commit 66a7ca1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.springframework.format.annotation.DateTimeFormat.ISO;
import org.springframework.hateoas.IanaLinkRelations;
import org.springframework.hateoas.Link;
import org.springframework.hateoas.MediaTypes;
import org.springframework.hateoas.PagedModel;
import org.springframework.hateoas.CollectionModel;
import org.springframework.hateoas.server.mvc.WebMvcLinkBuilder;
Expand Down Expand Up @@ -84,7 +85,8 @@
@RestController
// NOTE: CrossOrigin config moved to KlassSecurityConfiguration
// due to conditional behavior where some requests didn't get CORS headers and cause cache problems
@RequestMapping(value = {"/api/klass"+RestConstants.API_VERSION_V1, RestConstants.API_VERSION_V1, "/rest/v1" })
@RequestMapping(value = {"/api/klass"+RestConstants.API_VERSION_V1, RestConstants.API_VERSION_V1, "/rest/v1" },
produces = {MediaTypes.HAL_JSON_VALUE, "application/*", "text/csv"})
public class ClassificationController {
private static final Logger log = LoggerFactory.getLogger(ClassificationController.class);
private final ClassificationService classificationService;
Expand Down

0 comments on commit 66a7ca1

Please sign in to comment.