From 6c44a60280f11e7019b691b0ae5e84cdc26bd062 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 7 May 2015 14:19:45 +0200 Subject: [PATCH] DATAREST-534 - RepositorySchemaController now also matches non-explicit schema requests. --- .../data/rest/webmvc/RepositorySchemaController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySchemaController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySchemaController.java index 77d41ae86..f8bf345fb 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySchemaController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositorySchemaController.java @@ -57,7 +57,7 @@ class RepositorySchemaController { * @param resourceInformation will never be {@literal null}. * @return */ - @RequestMapping(value = BASE_MAPPING + "/schema", method = GET, produces = { "application/schema+json" }) + @RequestMapping(value = BASE_MAPPING + "/schema", method = GET) public HttpEntity schema(RootResourceInformation resourceInformation) { JsonSchema schema = jsonSchemaConverter.convert(resourceInformation.getDomainType());