dashboard.router

Define dashboard specific DRF API routes.

Copyright (C) 2018 Gitcoin Core

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

BountyFulfillmentSerializer

BountyFulfillmentSerializer(self, instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)

Handle serializing the BountyFulfillment object.

Meta

BountyFulfillmentSerializer.Meta(self, /, *args, **kwargs)

Define the bounty fulfillment serializer metadata.

InterestSerializer

InterestSerializer(self, instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)

Handle serializing the Interest object.

Meta

InterestSerializer.Meta(self, /, *args, **kwargs)

Define the Interest serializer metadata.

KudosSerializer

KudosSerializer(self, instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)

Handle serializing the Kudos object.

Meta

KudosSerializer.Meta(self, /, *args, **kwargs)

Define the kudos serializer metadata.

ActivitySerializer

ActivitySerializer(self, instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)

Handle serializing the Activity object.

Meta

ActivitySerializer.Meta(self, /, *args, **kwargs)

Define the activity serializer metadata.

BountySerializer

BountySerializer(self, instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)

Handle serializing the Bounty object.

Meta

BountySerializer.Meta(self, /, *args, **kwargs)

Define the bounty serializer metadata.

create

BountySerializer.create(self, validated_data)

Handle creation of m2m relationships and other custom operations.

update

BountySerializer.update(self, validated_data)

Handle updating of m2m relationships and other custom operations.

BountyViewSet

BountyViewSet(self, **kwargs)

Handle the Bounty view behavior.

filter_backends

Built-in immutable sequence.

If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.

If the argument is a tuple, the return value is the same object.

queryset

Handle the manager queryset for Bounties.

BountySerializer

BountyViewSet.BountySerializer(self, instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)

Handle serializing the Bounty object.

get_queryset

BountyViewSet.get_queryset(self)

Get the queryset for Bounty.

Returns: QuerySet: The Bounty queryset.