One more solution from Russian forum:

ClassMethod gluconatV2(xAs %String ProcedureBlock = 1 ]
{
 y="" i=1:1:$l(x){c=$e(x,i),a=$a(c)-97-(c]"r")-(c]"y"),z=c]" ",d=a\3+2*s:d=$e(y,*) y=y_" " j=0:1:a#3+("sz"[c)*y=y_dy
}

And one "extremum" version:

ClassMethod ToPhone( t, "(t){s s="" f i=1:1:$l(t) {f N=0:1:3 s n=$f(""adgjmptw "",$c($a($e(t,i))-N)) s:n n=n#10,s=s_$e("" "",s_-1[(n_-1))_$e(n_n_n_n,1,N+1),N=9} q s}"As %String CodeMode = expression ]
{
$xecute(a,t)
}

Here is the case, when you probably will need at least two web apps for DeepSee REST API.

Consider you want  some data to be accessed with authorisation and you provide this access with /webapp1 which is set up with authorisation by password.

And maybe you want some data to be accessible for everyone - you can do it with /webapp2  with option for UnknownUser.

No, you don't need gulp to use it. Gulp is used to make releases.

To use it on your  server do following:

Install MDX2JSON first.

  1. Download Installer.cls.xml (from MDX2JSON folder in repository or releases page) and import it into any namespace)
  2. Run in terminal (import namespace) under user with %All role:

    Do ##class(MDX2JSON.Installer).setup()

It will create MDX2JSON Namespace, will create /MDX2JSON webapp, make MDX2JSON package mapping to %All.

Check server:port/MDX2JSON/Test  that installation was successful.

Then download the recent DSWeb release and install it.

How to install:  download installer. Import it to any Namespace (f.e. User).

Run:

d ##class(DSW.Installer).setup()

It will create webapp, folder and will install the client.

To update DSW, run:

d ##class(DSW.Installer).update()