Gunwant Kapade · Sep 24, 2019 go to post

Hi Jean,

Yes, you are right. I have set up a Web Application named "/widgetsdirect/rest" via the Management Portal, just namespace name is different.

So while running from browser we need any additional settings ?

Thanks, Gunwant

Gunwant Kapade · Sep 24, 2019 go to post

This is my REST Class

Class GSK.Rest1 Extends %CSP.REST { Parameter HandleCorsRequest = 1; XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ] {

}

ClassMethod Test(name as %String) As %Status { w "Hello World "_name

Quit $$$OK } } }

I am expecting result like " Hello World Gunwant" from browser ( localhost:57772/widgetsdirect/rest/Gunwant)

From Postman I am getting same result. But from browser service unavailable error I am getting.

Thanks,

Gunwant

Gunwant Kapade · Sep 23, 2019 go to post

Sure Danny, I will do that.

This is my REST Class

Class GSK.Rest1 Extends %CSP.REST
{
Parameter HandleCorsRequest = 1;
XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ]
{

<Routes>
<Route Url="/:name" Method="GET" Call="Test" Cors="true"/>

</Routes>
}

ClassMethod Test(name as %String) As %Status
{
w "Hello World "_name

Quit $$$OK
}
}
}

I am expecting result like " Hello World Gunwant"  from browser  ( localhost:57772/widgetsdirect/rest/Gunwant)

From Postman I am getting same result. But from browser service unavailable error I am getting.

Thanks,

Gunwant

Gunwant Kapade · Sep 12, 2019 go to post

Thanks Edward.

Can you please provide documentation link for MV basic ?  It will help me to explore more.

Gunwant Kapade · Feb 2, 2019 go to post

$Now() gives you output in different format. ODBC date format is 3. When dformat is 3 then ODBC date separator ( '-' ) is used. For all other date format space is used as a date separator. Instead of $Now() you can use $H also. Ex.

  1. w $ZDT($H,3) 2019-02-02 10:25:58

  2. w $ZDT($Now(),3) 2019-02-02 10:27:20