ardalis / ardalis/ApiEndpoints

add consumes/ produces attribute

Open
#187 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.2k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

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
{
}

Contributor guide

Open the contributing guide

Research direction

Start by reviewing EndpointBaseAsync and the ASP.NET Core handling of the Produces and Consumes attributes shown in the request. Determine whether attributes on a custom base endpoint should affect derived endpoints, and define completion as those media types being recognized for the generated endpoint metadata.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.