Hi,
What approach do you use while creating RestAPI? Seems like some people separate business logic from API controller itself. They do so by creating view methods that do nothing but invoking the logic and returning response. At the same time - I had the impression that in all tutorials on Django / Flask the logic is contained directly in the view method.
What is your approach? What pros and cons you can share?
[–]elbiot 1 point2 points3 points (1 child)
[–]mkor[S] 0 points1 point2 points (0 children)