Skip to content

Commit 682eff7

Browse files
fixed weird bug with rendering some packages, probably this bug live in %CSP.REST
1 parent 5d03fcd commit 682eff7

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

cache/projectTemplate.xml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Returns structured package data</Description>
302302
</Class>
303303

304304

305-
<Project name="UMLExplorer" LastModified="2015-05-14 01:35:59.888696">
305+
<Project name="UMLExplorer" LastModified="2015-05-15 00:57:01.855062">
306306
<Items>
307307
<ProjectItem name="UMLExplorer.ClassView" type="CLS"></ProjectItem>
308308
<ProjectItem name="UMLExplorer.Router" type="CLS"></ProjectItem>
@@ -315,7 +315,7 @@ Returns structured package data</Description>
315315
<Description>
316316
REST interface for UMLExplorer</Description>
317317
<Super>%CSP.REST</Super>
318-
<TimeChanged>63685,85586.177035</TimeChanged>
318+
<TimeChanged>63687,39024.811955</TimeChanged>
319319
<TimeCreated>63648,30450.187229</TimeCreated>
320320

321321
<XData name="UrlMap">
@@ -327,9 +327,9 @@ REST interface for UMLExplorer</Description>
327327
<Route Url="/js/CacheUMLExplorer.js" Method="GET" Call="GetJs"/>
328328
<Route Url="/Test" Method="GET" Call="Test"/>
329329
<Route Url="/GetClassTree" Method="GET" Call="GetClassTree"/>
330-
<Route Url="/GetClassView/:ClassName" Method="GET" Call="GetClassView"/>
331-
<Route Url="/GetPackageView/:PackageName" Method="GET" Call="GetPackageView"/>
332-
<Route Url="/GetMethod/:ClassName/:MethodName" Method="GET" Call="GetMethod"/>
330+
<Route Url="/GetClassView" Method="GET" Call="GetClassView"/>
331+
<Route Url="/GetPackageView" Method="GET" Call="GetPackageView"/>
332+
<Route Url="/GetMethod" Method="GET" Call="GetMethod"/>
333333
</Routes>
334334
]]></Data>
335335
</XData>
@@ -349,9 +349,9 @@ Method returns whole class tree visible in the current namespace.</Description>
349349
<Description>
350350
Returns classTree by given class name</Description>
351351
<ClassMethod>1</ClassMethod>
352-
<FormalSpec>className:%String</FormalSpec>
353352
<ReturnType>%Status</ReturnType>
354353
<Implementation><![CDATA[
354+
set className = %request.Get("name")
355355
set classData = ##class(UMLExplorer.ClassView).getClassView(className)
356356
do classData.%ToJSON(, "ou")
357357
return $$$OK
@@ -362,9 +362,9 @@ Returns classTree by given class name</Description>
362362
<Description>
363363
Returns all package class trees by given package name</Description>
364364
<ClassMethod>1</ClassMethod>
365-
<FormalSpec>packageName:%String</FormalSpec>
366365
<ReturnType>%Status</ReturnType>
367366
<Implementation><![CDATA[
367+
set packageName = %request.Get("name")
368368
set classData = ##class(UMLExplorer.ClassView).getPackageView(packageName)
369369
do classData.%ToJSON(, "ou")
370370
return $$$OK
@@ -375,9 +375,10 @@ Returns all package class trees by given package name</Description>
375375
<Description>
376376
Returns method description and code</Description>
377377
<ClassMethod>1</ClassMethod>
378-
<FormalSpec>className:%String,methodName:%String</FormalSpec>
379378
<ReturnType>%Status</ReturnType>
380379
<Implementation><![CDATA[
380+
set className = %request.Get("className")
381+
set methodName = %request.Get("methodName")
381382
set methodData = ##class(ClassView).getMethod(className, methodName)
382383
do methodData.%ToJSON(, "ou")
383384
return $$$OK

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CacheUMLExplorer",
3-
"version": "0.9.2",
3+
"version": "0.9.3",
44
"description": "An UML Class explorer for InterSystems Caché",
55
"directories": {
66
"test": "test"

web/js/Source.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Source.prototype.getClassTree = function (callback) {
2424
Source.prototype.getMethod = function (className, methodName, callback) {
2525

2626
lib.load(
27-
this.URL + "/GetMethod/" + encodeURIComponent(className) + "/"
27+
this.URL + "/GetMethod?className=" + encodeURIComponent(className) + "&methodName="
2828
+ encodeURIComponent(methodName),
2929
null,
3030
callback);
@@ -38,7 +38,7 @@ Source.prototype.getMethod = function (className, methodName, callback) {
3838
*/
3939
Source.prototype.getClassView = function (className, callback) {
4040

41-
lib.load(this.URL + "/GetClassView/" + encodeURIComponent(className), null, callback);
41+
lib.load(this.URL + "/GetClassView?name=" + encodeURIComponent(className), null, callback);
4242

4343
};
4444

@@ -49,7 +49,7 @@ Source.prototype.getClassView = function (className, callback) {
4949
*/
5050
Source.prototype.getPackageView = function (packageName, callback) {
5151

52-
lib.load(this.URL + "/GetPackageView/" + encodeURIComponent(packageName), null, callback);
52+
lib.load(this.URL + "/GetPackageView?name=" + encodeURIComponent(packageName), null, callback);
5353

5454
};
5555

0 commit comments

Comments
 (0)