The use of Spring Data Rest is definitely a way to create applications really fast.
But keeping in mind the future production environment, I really want to know if it is a good idea to mix the endpoints in a @RestController (where you will call a service with business validations and logics) with query endpoints generated by the rest repositories.
As it is based on the Hypermedia-Driven RESTful Web Service principle, it is great but depends on various use cases. Look for articles on Hypermedia-Driven RESTful Web Service and you will learn some good things also.
It is good - very good for insensitive data, which is generally available to all.
And quite good for data where you don't need any orchestration, as it would be direct from the db.
The only concern could be having them secured(the endpoints) under some super user type role in your application so that normal user(s) cannot access it.
It would again depend on the use case of your application.
If it is highly sensitive data, then it should not be used as data will available through the APIs and data would be compromised
Or having separate application which could reside in the premises of the application developing organisation only
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With