Last active
July 19, 2019 16:57
-
-
Save Dadinel/01239df00ab04e6e483b262ddc9a36d6 to your computer and use it in GitHub Desktop.
Exemplo REST - GET - Hello World
This file contains 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
wsmethod get wsservice DnlRestETC | |
//Esse cara indica que vamos retornar um HTML, apenas para o nosso primeiro retorno | |
self:setContentType("text/html") | |
self:setResponse("<p>Hello World</p>") | |
self:setStatus(200) | |
return .T. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment