Added ability to specify a RouteResponse and RouteRequest as a dynamic. Improved documentation and fixed some null checks that were missing with this change. Bumped package version to 1.7.6

This commit is contained in:
2023-12-14 11:33:42 -08:00
parent 38ef135b8a
commit 5f83b30cb2
7 changed files with 37 additions and 15 deletions

View File

@ -211,7 +211,7 @@ namespace MontoyaTech.Rest.Net.Example
}
[RouteGroup("Auth")]
[RouteResponse(typeof(JObject))]
[RouteResponse(Dynamic = true)]
public static HttpListenerResponse Dynamic(HttpListenerContext context)
{
return context.Response.WithStatus(HttpStatusCode.OK).WithJson(777);