Hi
I'm new to Java and Spring but not programming. This is my first post and I read that this was a good place to help with Java
I'm looking to build a REST API and I was going through some Spring tutorials (
https://spring.io/guides/gs/accessing-data-rest/ +
https://spring.io/guides/gs/rest-service/).
I noted that the one uses the restful controller approach and the other uses the RepositoryRestResource and omits the controller. I guess I'm trying to find out which would be the better approach. To give more ideas on my API. I basically envisage it needing some authentication (likely OAuth) and authorization. eg authenticated to view x and authorized to edit x.
I'm looking for my API to then power a website and then iOS / Andoird if necessary.
On a related side note, I just wondered if there were any tools to generate JPA entity classes from an existing DB structure? I'm using intellij community
Thanks