Spring Data Rest exposes all finder methods in Repository layer and also Schema for Entity after RestRepository annotation is applied to Repository and RepositoryRestMvcConfiguration is enabled.
How can we expose selected methods in repository only and disable entity schema exposure as REST
Also if some Entity property has to be not shown in Json, do we need to anotate JsonIgnore in Entity itself ?
Im afraid you will have to use @RestResource(exported=false) either on each method ( so overriding it ).
2nd question: yes, use JsonIgnore.