1

Topic: REST-service returns 404

The first time I create rest service in Cache, therefore an error probably, a nursery, but I can not understand in what a problem? Help, please.
Created a class:

Class wallet. Rest Extends %CSP.REST
{
Parameter UseSession As Integer = 1;
XData UrlMap
{
<Routes>
<Route Url = "/test" Method = "GET" Call = "wallet. Rest:Test"/>
</Routes>
}
ClassMethod Test () As %Status
{
#dim tSC As %Status = $$$ OK
q tSC
}
}

Added in the Portal, in web applications, application with a name "/csp / [area]/rest". I cause here so: http:// [server]:57772/csp / [area]/rest/test
The error 404 is returned.

2

Re: REST-service returns 404

Simply to create a class not enough, it is necessary to create still CSP application in a control portal where to specify the class in the field the Class the handler.
After that it will be possible to cause REST through it CSP application

3

Re: REST-service returns 404

DAiMor wrote:

... It is necessary to create still CSP application in a control portal where to specify the class in the field the Class the handler

It is System> Security management> an application Web? There I created application. But fields "a class the output agent" I here something do not see... : Cache for UNIX 2014.1.2

4

Re: REST-service returns 404

Oh! Something I blind absolutely. Yes, the problem was in a class the output agent.
Thanks!