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:
@@ -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> {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user