File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 8
8
<XMLNamespace >http://www.intersystems.com/urlmap</XMLNamespace >
9
9
<Data ><![CDATA[
10
10
<Routes>
11
+ <Route Url="/sql" Method="POST" Call="executeSQL"/>
12
+ <Route Url="/kpi" Method="POST" Call="generateKPI"/>
11
13
<Route Url="/logout" Method="GET" Call="logout"/>
12
14
<Route Url="/test" Method="GET" Call="test"/>
13
15
</Routes>
@@ -37,5 +39,20 @@ Test</Description>
37
39
return $$$OK
38
40
]]> </Implementation >
39
41
</Method >
42
+
43
+ <Method name =" executeSQL" >
44
+ <ClassMethod >1</ClassMethod >
45
+ <FormalSpec >sql:%String</FormalSpec >
46
+ <ReturnType >%Status</ReturnType >
47
+ <Implementation ><![CDATA[
48
+ #dim sc As %Status = $$$OK
49
+ set provider = ##class(%ZEN.Auxiliary.altJSONSQLProvider).%New()
50
+ set provider.maxRows = $$$MaxCacheInt
51
+ set provider.%Format = "tw"
52
+ set provider.sql = %request.Content.SQL
53
+ set sc = provider.%DrawJSON()
54
+ return sc
55
+ ]]> </Implementation >
56
+ </Method >
40
57
</Class >
41
58
</Export >
You can’t perform that action at this time.
0 commit comments