Skip to content

Limit on base url and ignore parameter. #227

@bert2002

Description

@bert2002

At the moment I have a implantation with Fastapi that limits on the following endpoint:

@app.get("/v1/endpoint/{parameter}")
@limiter.limit("60/minute")

This is generation limits for varous endpoints, like:

/v1/endpoint/a
/v1/endpoint/b
/v1/endpoint/c

I want the limit to apply for /v1/endpoint/* though. Even with global enforcement it will not.
I can identify users with an get request, could that work as identifier?

Thanks,
bert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions