Comments (5)
wims.tijd commented
seems to be duplicate of https://jira.springsource.org/browse/DATAREST-4
from spring-data-rest.
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.
wims.tijd commented
wanted to expose a read-only repository or disable PUT,DELETE
from spring-data-rest.
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.
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)
- Release 4.1.9 (2023.0.9)
- Release 4.2.3 (2023.1.3)
- PATCH request for updating nested collections does not work correctly since spring-boot 3.1.1 HOT 4
- Error "Couldn't find PersistentEntity for type class" when attempting to return Non-PersistenceEntity data HOT 1
- Augmenting arrays during merge patch only appends one element
- Nested arrays of entities need to get PUT semantics applied for merge patch
- Move off Expression infrastructure to apply JSON Patch paths
- Does spring data rest supports sorting on inherited fields? HOT 1
- Issue with Enum datatype in querydsl HOT 3
- Document how to use TestRestTemplate with spring-data-rest
- Release 4.1.10 (2023.0.10)
- Release 4.2.4 (2023.1.4)
- Release 4.3 M2 (2024.0.0)
- Json object not gettting captured in POST request HOT 4
- Upgrade to Spring Security 6.1.7 for integration tests
- Release 4.1.11 (2023.0.11)
- Release 4.2.5 (2023.1.5)
- Release 4.3 RC1 (2024.0.0)
- Upgrade to MongoDB driver 5
- Upgrade to Hibernate 6.5.0.CR1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-rest.