Code Monkey home page Code Monkey logo

Comments (5)

spring-projects-issues avatar spring-projects-issues commented on May 18, 2024

wims.tijd commented

seems to be duplicate of https://jira.springsource.org/browse/DATAREST-4

from spring-data-rest.

spring-projects-issues avatar spring-projects-issues commented on May 18, 2024

Jon Brisbin commented

Internally, the exporter is casting repositories to a CrudRepository to be able to call the necessary methods. Custom interfaces aren't supported in RC1 but I'm hoping to get that support added in the next couple of days so it will be there before 1.0 GA

from spring-data-rest.

spring-projects-issues avatar spring-projects-issues commented on May 18, 2024

wims.tijd commented

wanted to expose a read-only repository or disable PUT,DELETE

from spring-data-rest.

spring-projects-issues avatar spring-projects-issues commented on May 18, 2024

Jon Brisbin commented

I just answered another user about this functionality. I'm thinking that the best way to do this for the time being is to use the existing @RestResource(exported = false) pattern which is used on query methods. Right now the exporter doesn't look for this annotation on CRUD methods but it would be relatively trivial to add that. You'd just need to override the appropriate method from CrudRepository and add this annotation to it.

In the future it would be great to have all method calls handled by the proper authorization mechanism (a la Spring Security) which would make the decision to export a particular method much more dynamic and flexible

from spring-data-rest.

spring-projects-issues avatar spring-projects-issues commented on May 18, 2024

Jon Brisbin commented

Latest snapshots include code to check for @RestRepository(exported = false) on CRUD methods as well

from spring-data-rest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.