Added an attribute that can be used to included extra types in the client generation. Bumped package version to 1.4.1
This commit is contained in:
1 parent
e8735d8764
commit
1345e326a8
4 files changed
+55
-1
No files matched your search
@@ -53,6 +53,11 @@ namespace MontoyaTech.Rest.Net.Example
|
||||
User = 1
|
||||
}
|
||||
|
||||
public class IncludedType
|
||||
{
|
||||
public int Test;
|
||||
}
|
||||
|
||||
public static RouteFileCache FileCache = new RouteFileCache(100 * 1024 * 1024);
|
||||
|
||||
public static void Main(string[] args)
|
||||
@@ -103,6 +108,7 @@ namespace MontoyaTech.Rest.Net.Example
|
||||
|
||||
[RouteGroup("Test")]
|
||||
[RouteResponse(typeof(string))]
|
||||
[RouteInclude(typeof(IncludedType))]
|
||||
public static HttpListenerResponse Status(HttpListenerContext context)
|
||||
{
|
||||
return context.Response.WithStatus(HttpStatusCode.OK).WithText("Everything is operational. 👍");
|
||||
|
||||
Reference in new issue
Block a user