dotnet / dotnet/aspnetcore

Support inferring rate-limited endpoints in OpenAPI

Open
#44,810 1 comment 1 reaction 0 assignees View on GitHub
area-minimal feature-openapi
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

Starting in .NET 7, it is possible to enable rate-limiting on certain endpoints. When this is the case, the endpoints might return a response with a 503 status code.

We don't currently pass this information to any OpenAPI annotations, but we should probably document this when it is possible to infer.

Note: this is similar to the problem with the global `ProblemDetails` service (pun intended) and is related to https://github.com/dotnet/aspnetcore/issues/44192.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.