Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hathor/cli/openapi_files/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def register_resource(resource_class: ResourceClass) -> ResourceClass:
def get_registered_resources() -> list[type[Resource]]:
""" Returns a list with all the resources registered for the docs
"""
import hathor.feature_activation.resources.feature # noqa: 401
import hathor.p2p.resources # noqa: 401
import hathor.profiler.resources # noqa: 401
import hathor.stratum.resources # noqa: 401
Expand Down
18 changes: 17 additions & 1 deletion hathor/feature_activation/resources/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,23 @@ class GetFeaturesResponse(Response):

FeatureResource.openapi = {
'/feature': {
'x-visibility': 'private',
'x-visibility': 'public',
'x-rate-limit': {
'global': [
{
'rate': '50r/s',
'burst': 100,
'delay': 50
}
],
'per-ip': [
{
'rate': '3r/s',
'burst': 10,
'delay': 3
}
]
},
'get': {
'operationId': 'feature',
'summary': 'Feature Activation',
Expand Down