Created
April 26, 2017 15:57
-
-
Save fasetto/78b97aa131288097a3ae27e8fba30ca2 to your computer and use it in GitHub Desktop.
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
[Route("/hello/{Name}", "GET")] | |
public class HelloRequest : IReturn<HelloResponse> | |
{ | |
public string Name { get; set; } | |
} | |
public class HelloResponse | |
{ | |
public string Result { get; set; } | |
} | |
public class HelloService : Service | |
{ | |
public object GET(HelloRequest request) | |
{ | |
return new HelloResponse { Result = $"Hello, {request.Name}" }; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment