Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Add support for specifying content-type for [Body] parameters #800

@pranavkm

Description

@pranavkm

The intent is to only bind the value if the content-type of the request matches:

public IActionResult Foo([Body("application/json")] MyModel model)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions