How to run REST.DocServer class file in local server?
I'm new to learn Rest Services in Cache.
I have REST.DocServer class file in local system. When I tried to run this file I have the error as HTTP ERROR 403.
Can anyone help me to run this sample Rest Services program?
Thanks in Advance.
Please put some example of your code here, and how exactly you call your REST.
This is an example program for rest services[ REST.DocServer ], already given in 'samples' namespace.
Looks like, you call this service in the wrong way. I would suggest, that you call it by URL
http://localhost:57772/csp/samples/REST.DocServer.cls
while you should use this URLhttp://localhost:57772/csp/samples/docserver/namespaces
But before you should activate application
/csp/samples/docserver
, for details look at the documentation.Is it possible execute this URL
http://localhost:57772/csp/samples/docserver/namespaces
in PostMan?And I tried the first URL
http://localhost:57772/csp/samples/REST.DocServer.cls
, still, now it shows me the same error.As Dmitry wrote above, you shouldn't use
http://localhost:57772/csp/samples/REST.DocServer.cls
, this is not correct call for REST services.Correct URL to get list of namespaces is
http://localhost:57772/csp/samples/docserver/namespaces
in with GET method. Look at the http://localhost:57772/csp/documatic/%25CSP.Documatic.cls?LIBRARY=samples&CLASSNAME=REST.DocServer class documentation for further available methods.ok, thanks Tomas and I have one question.
Is it possible execute this URL
http://localhost:57772/csp/samples/docserver/namespaces
in PostMan?Yes, it is possible
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue