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:
2023-03-24 07:15:42 -07:00
parent e8735d8764
commit 1345e326a8
4 changed files with 55 additions and 1 deletions

View File

@ -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. 👍");