CRUD for complex objects
Hi! I have two tables in my database
and decide which term update or create. Or make two routes one for
Sets and Terms. One set has many terms. Set can have any number of terms. I need API routes to do CRUD for both of them. Is it better to create a single route that will accept set object and decide which term update or create. Or make two routes one for
Set and other for one Term and call first Set route then Term route for each term one by one? Set also can be imported from file. I have and route that parses file and returns terms that must be stored if user confirms that import is fine.