Re:Building a web app with no framework
by dotancohen on Sunday March 06, 2022 @04:34AM
(#30576266)
This sounds like giving the client direct access to the database. Sounds like a great way to facilitate data exfiltration attacks.
Often not even there!
If you use something like BaseX[1] or eXist-db[2], both XML database and XQuery[3] implementations (they also have ways to act as SQL clients), you get REST-, user-, and database-management as native part of the programming language (XQuery).
For REST it must implement the RESTXQ[4] module standard, which both the named products do. Since XQuery understands XML natively, you get full templating, database queries, REST routing and much more.
[1] https://basex.org
[2] https://exist-db.org
[3] https://en.wikipedia.org/wiki/XQuery
[4] https://www.google.com/search?q=restxq