Go to file
Ryan Nowak 420f442487 Fixes #3818 - Support Consumes in ApiExplorer
This change adds a list of ApiRequestFormat objects to ApiDescription
object which include the content type and formatter for each supported
content type which can be understood by the action.

Computation is aware of the [Consumes] attribute via the
IApiRequestMetadataProvider metadata interface, and aware of Input
Formatters via the new IApiRequestFormatMetadataProvider interface.

This algorithm is essentially the same as what we do for
produces/output-formatters. We iterate the filters and ask them what
content types they think are supported. Then we cross check that list with
the formatters, and ask them which from that list are supported. If no
[Consumes] filters are used, the formatters will include everything they
support by default.

This feature and data is only available when an action has a [FromBody]
parameter, which will naturally exclude actions that handle GET or DELETE
and don't process the body.
2016-01-13 12:32:17 -08:00
samples Fixes #3818 - Support Consumes in ApiExplorer 2016-01-13 12:32:17 -08:00
src Fixes #3818 - Support Consumes in ApiExplorer 2016-01-13 12:32:17 -08:00
test Fixes #3818 - Support Consumes in ApiExplorer 2016-01-13 12:32:17 -08:00
tools
.gitattributes
.gitignore
.travis.yml Revert "Run functional tets in parallel" 2015-12-16 06:44:41 -08:00
CONTRIBUTING.md
LICENSE.txt
Mvc.NoFun.sln Remove Razor precompilation 2016-01-12 14:51:33 -08:00
Mvc.sln Remove Razor precompilation 2016-01-12 14:51:33 -08:00
NuGet.config Revert DependencyContext changes untill dotnet-cli packages get sorted out 2016-01-08 15:59:53 -08:00
NuGetPackageVerifier.json
README.md Add link to ASP.NET MVC Boilerplate 2015-12-31 11:41:12 -08:00
Settings.StyleCop
appveyor.yml
build.cmd
build.sh
global.json Undo global.json change 2015-12-28 11:03:17 -08:00
makefile.shade

README.md

ASP.NET MVC

AppVeyor: AppVeyor

Travis: Travis

ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and gives you full control over markup for enjoyable, agile development. ASP.NET MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.NET MVC in ASP.NET 5 includes support for building web pages and HTTP services in a single aligned framework that can be hosted in IIS or self-hosted in your own process.

Related community projects:

This project is part of ASP.NET 5. You can find samples, documentation and getting started instructions for ASP.NET 5 at the Home repo.