Skip to content

Commit

Permalink
Update route-to-code.md (#20829)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK authored Dec 2, 2020
1 parent c6443b0 commit d57a751
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions aspnetcore/web-api/route-to-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

* <xref:web-api/index>
Expand Down

0 comments on commit d57a751

Please sign in to comment.