From d57a751df79053b27f4702503d33f4799a524a62 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Wed, 2 Dec 2020 20:27:10 +1300 Subject: [PATCH] Update route-to-code.md (#20829) --- aspnetcore/web-api/route-to-code.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/aspnetcore/web-api/route-to-code.md b/aspnetcore/web-api/route-to-code.md index 6eb184f46941..b2043a901455 100644 --- a/aspnetcore/web-api/route-to-code.md +++ b/aspnetcore/web-api/route-to-code.md @@ -94,6 +94,21 @@ In the `Startup.Configure` method, the `Map` method and other class's static met [!code-csharp[](route-to-code/sample/Startup5.cs?name=snippet)] +## Notable missing features compared to Web API + +Route-to-code is designed for basic JSON APIs. It doesn't have support for many of the advanced features provided by ASP.NET Core Web API. + +Features not provided by Route-to-code include: + +* Model binding +* Model validation +* OpenAPI/Swagger +* Content negotiation +* Constructor dependency injection +* `ProblemDetails` ([https://tools.ietf.org/html/rfc7807](RFC 7807)) + +Consider using [ASP.NET Core web API](xref:web-api/index) to create an API if it requires some of the features in the preceding list. + ## Additional resources *