SMILEY4 / ktor-swagger-ui

Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Rate Limiter

x2d7751347m opened this issue · comments

Here is the rate limiter: https://ktor.io/docs/rate-limit.html

I tried it below
routing { rateLimit { get("/something", { summary = "something Endpoint." response { ....

Result
image

URL paths are affected by the rateLimit function.

Are there any plans to support the rate limiter?

Hi,
there is no plan to directly "support" rate limiter or other plugins for this exact use-case, however, this issue can easily be fixed by adding the rate-limiter-part of the route to a list of ignored parts (PluginConfig#ignoredRouteSelectors). See #43 for more information.