Created
December 30, 2011 23:37
-
-
Save DevJohnC/1542052 to your computer and use it in GitHub Desktop.
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
| [ServiceDirectory("/examples")] // cause the request to be handled at /servicestack/{FORMAT}/syncreply/examples/HelloWorld | |
| public class HelloWorldService : IService<HelloWorld> | |
| { | |
| public object Execute(HelloWorld request) | |
| { | |
| return new HelloWorldResponse() { Text = "Hello World" }; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why don't you just use the prettier?
[RestService("/examples/helloworld")]
public class HelloWorld {}
at url: /servicestack/examples/helloworld