Skip to content

Instantly share code, notes, and snippets.

@eduard93
Created January 17, 2017 11:53
Show Gist options
  • Save eduard93/0c94d1f5f2f41c0c908fbfeabd2fbd1c to your computer and use it in GitHub Desktop.
Save eduard93/0c94d1f5f2f41c0c908fbfeabd2fbd1c to your computer and use it in GitHub Desktop.
Simple REST Service for InterSystems Ensemble
Class mvk.production.DocRESTService Extends EnsLib.REST.Service
{
Parameter ADAPTER = "EnsLib.HTTP.InboundAdapter";
XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ]
{
<Routes>
<Route Url="/:test" Method="GET" Call="test"/>
</Routes>
}
Parameter EnsServicePrefix = "|";
Method test(pInput As %Library.AbstractStream, Output pOutput As %Stream.Object, test As %String) As %Status
{
do pOutput.Write("Received:" _ test)
quit $$$OK
}
}
@eduard93
Copy link
Author

eduard93 commented Feb 8, 2017

addd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment