ardalis / ApiEndpoints

A project for supporting API Endpoints in ASP.NET Core web applications.
MIT License
3.13k stars 227 forks source link

add consumes/ produces attribute #187

Open aminparsa18 opened 2 years ago

aminparsa18 commented 2 years ago

Is it possible to have a base endpoint class with custom attributes like:

[Produces("application/x-msgpack")] [Consumes("application/x-msgpack")] public class CustomEndpointBase : EndpointBaseAsync { }