Skip to content

Is there a way to restrict CSV to only specific controller actions? #164

@VictorioBerra

Description

@VictorioBerra

I am using the AddCsvSerializerFormatters right now and from what I understand, my entire server will now support CSV input/output. But I want to be more explicit about when this is allowed because I have some pretty complex objects in some of my actions.

EDIT: I assume I do not have to put [Produces("text/csv")] over every single action to force only that type, right?

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