Skip to content

Commit

Permalink
Deprecate price endpoint (#1760)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Uxío <[email protected]>
  • Loading branch information
moisses89 and Uxio0 authored Nov 16, 2023
1 parent 6b97369 commit 233a0ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion safe_transaction_service/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "4.28.0"
__version__ = "4.28.1"
__version_info__ = tuple(
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
Expand Down
5 changes: 5 additions & 0 deletions safe_transaction_service/tokens/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django.views.decorators.cache import cache_page

import django_filters.rest_framework
from drf_yasg.utils import swagger_auto_schema
from rest_framework import response, status
from rest_framework.filters import OrderingFilter, SearchFilter
from rest_framework.generics import ListAPIView, RetrieveAPIView
Expand Down Expand Up @@ -61,6 +62,10 @@ class TokenPriceView(RetrieveAPIView):
lookup_field = "address"
queryset = Token.objects.all()

@swagger_auto_schema(
deprecated=True,
operation_description="Eth/token pricing features will be removed at 30/11/2024",
)
@method_decorator(cache_page(60 * 10)) # Cache 10 minutes
def get(self, request, *args, **kwargs):
address = self.kwargs["address"]
Expand Down

0 comments on commit 233a0ad

Please sign in to comment.