summaryrefslogtreecommitdiff
path: root/src/db/rest/util/api_root.sql
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-12-20 00:30:08 -0500
committerFreya Murphy <freya@freyacat.org>2024-12-20 00:30:08 -0500
commit757ccac0103541a34d040ef4812b2e7afb9f1f02 (patch)
treefe8960c4fac73a11e09cc6a2ec7f2c3b8d812485 /src/db/rest/util/api_root.sql
parentprofile stuff (diff)
downloadxssbook2-757ccac0103541a34d040ef4812b2e7afb9f1f02.tar.gz
xssbook2-757ccac0103541a34d040ef4812b2e7afb9f1f02.tar.bz2
xssbook2-757ccac0103541a34d040ef4812b2e7afb9f1f02.zip
rename admin schema to xssbook
Diffstat (limited to 'src/db/rest/util/api_root.sql')
-rw-r--r--src/db/rest/util/api_root.sql19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/db/rest/util/api_root.sql b/src/db/rest/util/api_root.sql
new file mode 100644
index 0000000..7141a5f
--- /dev/null
+++ b/src/db/rest/util/api_root.sql
@@ -0,0 +1,19 @@
+
+CREATE FUNCTION FUNCTION _api.root()
+RETURNS JSON
+LANGUAGE plpgsql;
+AS $BODY$
+DECLARE
+openapi JSON = $$
+ {
+ "swagger": "2.0",
+ "info": {
+ "title": "XSSBook",
+ "description": "XSSBook Api Documentation"
+ }
+ }
+$$;
+BEGIN
+ RETURN openapi;
+END
+$BODY$;