I want to create a multi-user api where users go to the recreation service and have their own space to tell the booking class. Orders are not distributed between users.
I'm struggling to figure out what the best example is for creating this using as much spring loading magic as possible.
I use spring boot jpa and define user class and reservations with @Entity.
My reservation then refers to this user class. However, is there a way that I can use @RepositoryRestResource or a similar annotation to automatically isolate data models for each user, and then use spring Security to protect the CRUD endpoint, or do I need to create my own @RestResponse that searches for users based on their Authorization, and then create the findByUser method to perform isolation?
(note that I'm new to Spring, spring Boot, etc.)
Edit: I was offered a glimpse into the ACL, but I'm struggling to find good SIMPLE resources by explaining how they work.
spring spring-data-jpa spring-security
Haydon ryan
source share