We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aebc21 commit 748525bCopy full SHA for 748525b
TechStacks.ServiceInterface/HelloService.cs
@@ -0,0 +1,10 @@
1
+using ServiceStack;
2
+using TechStacks.ServiceModel;
3
+
4
+namespace TechStacks.ServiceInterface;
5
6
+public class HelloService : Service
7
+{
8
+ public object Any(Hello request) =>
9
+ new HelloResponse { Result = $"Hello, {request.Name}!" };
10
+}
TechStacks.ServiceModel/Hello.cs
@@ -0,0 +1,16 @@
+namespace TechStacks.ServiceModel;
+[Route("/hello")]
+[Route("/hello/{Name}")]
+public class Hello : IReturn<HelloResponse>
+ public string Name { get; set; }
11
12
+public class HelloResponse
13
14
+ public string Result { get; set; }
15
+ public ResponseStatus ResponseStatus { get; set; }
16
0 commit comments