I have a special interest in designing object-oriented architectures, distributed computing, projects that involve integration technologies, Continuous Integration as well as agile methodologies
Hey Daniel thanks for sharing. I would like to suggest one thing in your improvement list. It's good practice to have the responsibility well divided (looks for S.O.L.I.D.). So, you could separate your database repository logic from your controller. What do you think?
Many thanks for the feedback Samuel. There is definitely an opportunity to improve the logic here, the reasoning I had it all contained together was purely convenience as my main goal was to try get the API working initially. I'll definitely look into improving upon the logic there!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Daniel thanks for sharing. I would like to suggest one thing in your improvement list. It's good practice to have the responsibility well divided (looks for S.O.L.I.D.). So, you could separate your database repository logic from your controller. What do you think?
Many thanks for the feedback Samuel. There is definitely an opportunity to improve the logic here, the reasoning I had it all contained together was purely convenience as my main goal was to try get the API working initially. I'll definitely look into improving upon the logic there!