@@ -71,7 +71,7 @@ Example: send HTTP GET request to web application with Dispatch class <b>MDX2JSO
7171 <Route Url="/Config/:Application" Method="GET" Call="GetConfig" />
7272
7373 <!-- Get info about user favorites-->
74- <Route Url="/Favorites" Method="GET" Call="GetFavotites "/>
74+ <Route Url="/Favorites" Method="GET" Call="GetFavorites "/>
7575 <Route Url="/Favorites/:Item" Method="POST" Call="AddFavorite" />
7676 <Route Url="/Favorites/:Item" Method="DELETE" Call="RemoveFavorite" />
7777
@@ -282,10 +282,10 @@ Wrapper for ##class(MDX2JSON.Users).GetConfig()</Description>
282282
283283<Method name =" GetFavorites" >
284284<ClassMethod >1</ClassMethod >
285- <ReturnType >%String </ReturnType >
285+ <ReturnType >%Status </ReturnType >
286286<Implementation ><![CDATA[
287- do ##class(MDX2JSON.Users).GetFavorites()
288- return 1
287+ set st = ##class(MDX2JSON.Users).GetFavorites()
288+ return st
289289]]> </Implementation >
290290</Method >
291291
@@ -294,8 +294,8 @@ Wrapper for ##class(MDX2JSON.Users).GetConfig()</Description>
294294<FormalSpec >Name:%String</FormalSpec >
295295<ReturnType >%Status</ReturnType >
296296<Implementation ><![CDATA[
297- do ##class(MDX2JSON.Users).AddFavorite (Name)
298- return 1
297+ set Name = $ZCONVERT($ZCONVERT (Name ,"I","URL") ,"I","UTF8" )
298+ return ##class(%DeepSee.UserLibrary.Utils).%AddFavorite(Name)
299299]]> </Implementation >
300300</Method >
301301
@@ -304,8 +304,8 @@ Wrapper for ##class(MDX2JSON.Users).GetConfig()</Description>
304304<FormalSpec >Name:%String</FormalSpec >
305305<ReturnType >%Status</ReturnType >
306306<Implementation ><![CDATA[
307- do ##class(MDX2JSON.Users).RemoveFavorite (Name)
308- return 1
307+ set Name = $ZCONVERT($ZCONVERT (Name ,"I","URL") ,"I","UTF8" )
308+ return ##class(%DeepSee.UserLibrary.Utils).%RemoveFavorite(Name)
309309]]> </Implementation >
310310</Method >
311311</Class >
0 commit comments