Hi Davi.

I think IRIS BI has a feature that could helps you. Please, see this document.

I created an application which uses a react page to display a listing from a cube; but not sure if this is what you are looking for... Anyway, if you are interested, please, check out this package. If you want to try my example applicantion you can find it here.

HTH,

José

Sure! Let's say I have this dispatcher class:

XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ]
{
<Routes>
  <Route Url="/pets/:id" Method="delete" Call="deletePet" />
</Routes>
}

ClassMethod deletePet(pid As %String) As %Status
{
    Try {
        If '##class(%REST.Impl).%CheckAccepts("application/json") Do ##class(%REST.Impl).%ReportRESTError(..#HTTP406NOTACCEPTABLE,$$$ERROR($$$RESTBadAccepts)) Quit
        If ($number(pid,"I")="") Do ##class(%REST.Impl).%ReportRESTError(..#HTTP400BADREQUEST,$$$ERROR($$$RESTInvalid,"id",id)) Quit
        Set response=##class(petstore.impl).deletePet(pid)
        Do ##class(petstore.impl).%WriteResponse(response)
    } Catch (ex) {
        Do ##class(%REST.Impl).%ReportRESTError(..#HTTP500INTERNALSERVERERROR,ex.AsStatus())
    }
    Quit $$$OK
}

Is there a way to generate a YAML documentation for the endpoint /pets/:id, HTTP DELETE method, like you did for REST.Test.Person class?

Hi guys!

A related topic is how to disable Analytics. Recently, I had to disable access to DeepSee from certain namespace. I did that by settings this global:

Set ^SYS("Security", "CSP", "AllowPrefix", "web-app-name", "%DeepSee.") = 0

I used Caché 2017.2, but I think this also would work in newer Cache versions and in IRIS as well. More information here.

HTH,
José

Hi Eduard. Thank you for your response.

I've tried do a call to something like this (without filterSpec)

/Info/FilterMembers/Cube

and got this error

{"Info":{"Error":{"ErrorCode":"5002","ErrorMessage":"ERRO #5002: Erro Caché: <UNDEFINED>zWriteFilterMembers+47^%DeepSee.REST.v1.InfoServer.1 *tMembers(1)"}}}

If I append a filterSpec so I get a correct response.