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:
@ -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