Exifly / ApiVault

Your gateway to a world of public APIs.
https://apivault.dev
Other
435 stars 39 forks source link

[ FEATURE ] set API max retry #262

Closed gdjohn4s closed 2 months ago

gdjohn4s commented 1 year ago

Is your feature request related to a problem? Please describe

No, but for a possible future problem like DDOS.

Describe the solution you'd like

I'd like to set a max retry per user session.

Additional context

This is a possible way to implement it in settings.py:

'DEFAULT_THROTTLE_RATES': {
        'anon': '100/day',
        'user': '1000/day'
    }
Dev79844 commented 1 year ago

Hey @gdjohn4s! I would like to work on this issue.

FlavioAdamo commented 1 year ago

hI @Dev79844 , sure! I think a good limit would be 100 requests per hour for not logged users, and 1000 for logged in users.

@gdjohn4s wdyt?

gdjohn4s commented 1 year ago

sure

Dev79844 commented 1 year ago

@gdjohn4s I am getting this error while setting up the application locally. Can help me?

Screenshot 2023-09-21 at 2 44 04 PM
gdjohn4s commented 1 year ago

@Dev79844 Try removing the versioning and use only distro-info in the requirements