What kind of code belongs in a utils folder in your REST API?
Generally when working on a REST API, you'll need to write some code that's a bit more generic compared to some of your other business logic. For example, a function that converts dates into a certain format.
When you're working on adding this code, you may be wondering where in your project does it go? Could it be considered a utility? Or does it belong with your business/domain logic? Or you may have worked on API's where there's a
utilities folder in the project and questioned exactly what kind of code goes in there.
There is a lot of nuance here, so that's what this post is going to examine and answer the above questions.