Simple API with Nginx and PostgreSQL
This article gives a good example of why you SHOULD consider using an existing framework to create a REST API.<p>I see no concern about authentication, authorisation, scalability, protection from SQL injection attacks, nor making the output easily parseable by third-party applications.<p>None of these are issues you can simply say, "I'll deal with that later when it becomes a problem." They are reasons why an existing framework is helpful.<p>Any example of a web application using a database should NOT be using string concatenation for adding field values to an SQL statement. Ever. Really.