Fix for DATAREST-72. ResourceMapping.isExported() is now considered for displaying the link to the repository or when building the metadata for the request. Now sends back a 404 when a repository is not exported and an attempt to access it is made.

This commit is contained in:
Jon Brisbin
2013-03-06 08:42:20 -06:00
parent 5f21071a5e
commit 4d8f009679
3 changed files with 9 additions and 2 deletions

View File

@@ -1,9 +1,11 @@
package org.springframework.data.rest.example.mongodb;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.repository.annotation.RestResource;
/**
* @author Jon Brisbin
*/
@RestResource(exported = false)
public interface ProfileRepository extends CrudRepository<Profile, String> {
}