In a rest API, let's say that we have 2 resources Candidate and JobApplication.
A candidate can make multiple application and an application is only related to a candidate.
It's a OneToMany / ManyToOne relationship.
What is the best "REST routes" for a CRUD ? Should I make a JobApplication controller even if the applications can only be made by a candidate ? Or should I define my routes in the CandidateController ( eg. POST /candidates/job-applications .. ) ? Thanks !