Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
wbcurrency / currency / views / api / currency.py
Size: Mime:
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import viewsets
from rest_framework.decorators import api_view
from currency.models import Currency
from currency.serializers import CurrencyModelSerializer
from wbutils.views import AppModelResponseHeaderMixin
from rest_framework.response import Response

class CurrencyViewSet(AppModelResponseHeaderMixin, viewsets.ModelViewSet):
    IDENTIFIER = "currency:currency"
    queryset = Currency.objects.all()
    serializer_class = CurrencyModelSerializer