Saturday, 14 September 2019

Three Layer API Structure Questions

I have been working on a project for a few months, and the API side is all controllers... Yup, I write an end point, and put all the logic and data access inside that controller. So now, I'm starting to see the value of separating my routes, logic, data access and want to refactor.My question is: How do you structure your APIs? What is your naming scheme?Controllers > Repositories > DALControllers > Services > DALI know naming doesn't really matter, but using names you like seems to make it more enjoyable. Anyway, thanks for reading.

Submitted September 14, 2019 at 06:43PM by BonerBrunch

No comments:

Post a Comment