diff options
Diffstat (limited to '')
-rw-r--r-- | src/db/rest/util/api_root.sql | 19 |
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$; |