init: Application.cfc + db.cfc CRUD API + index.cfm

This commit is contained in:
2026-06-18 12:17:04 +04:00
commit cb2d96ee66
3 changed files with 189 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<cfsetting showdebugoutput="no" enablecfoutputonly="yes">
<cfoutput>
<!DOCTYPE html>
<html lang="ru">
<head><meta charset="UTF-8"><title>Contractor — Lucee</title></head>
<body>
<h1>Contractor API</h1>
<p>API для сверки договоров — Lucee 6.0</p>
<ul>
<li><a href="/rest/db/test">GET /rest/db/test</a> — проверка БД</li>
<li><a href="/rest/db/tables">GET /rest/db/tables</a> — список таблиц</li>
<li><a href="/rest/db/schema">GET /rest/db/schema</a> — создать схему</li>
<li>GET /rest/db/query?sql=SELECT...</li>
<li>POST /rest/db/execute — {"sql":"...", "params":[...]}</li>
</ul>
</body>
</html>
</cfoutput>