Created
January 17, 2017 11:53
-
-
Save eduard93/0c94d1f5f2f41c0c908fbfeabd2fbd1c to your computer and use it in GitHub Desktop.
Simple REST Service for InterSystems Ensemble
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
addd