dashboard.router

Define dashboard specific DRF API routes.

Copyright (C) 2021 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.

HackathonEventSerializer

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

Handle serializing the hackathon object.

Meta

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

Define the hackathon 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.

KudosTokenSerializer

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

Handle serializing the Kudos object.

Meta

KudosTokenSerializer.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.

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.

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.

HackathonProjectSerializer

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

Meta

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

HackathonProjectsPagination

HackathonProjectsPagination(self, /, *args, **kwargs)

page_size

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

HackathonProjectsViewSet

HackathonProjectsViewSet(self, **kwargs)

queryset

Represent a lazy database lookup for a set of objects.

HackathonProjectSerializer

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

HackathonProjectsPagination

HackathonProjectsViewSet.HackathonProjectsPagination(self, /, *args, **kwargs)

BountySerializerSlim

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

Meta

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

Define the bounty serializer metadata.

BountySerializerCheckIn

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

Meta

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

BountiesViewSet

BountiesViewSet(self, **kwargs)

Handle Bounties 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

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

Handle serializing the Bounty object.

get_queryset

BountiesViewSet.get_queryset(self)

Get the queryset for Bounty.

Returns: QuerySet: The Bounty queryset.

BountiesViewSetSlim

BountiesViewSetSlim(self, **kwargs)

queryset

Handle the manager queryset for Bounties.

BountySerializerSlim

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

BountiesViewSetCheckIn

BountiesViewSetCheckIn(self, **kwargs)

queryset

Handle the manager queryset for Bounties.

BountySerializerCheckIn

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

BountyViewSet

BountyViewSet(self, **kwargs)

API response for an individual bounty by url

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)

Constructs queryset for an individual bounty

Returns: QuerySet: The Bounty queryset.

TribesTeamSerializer

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

Meta

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

TribesSerializer

TribesSerializer(self, *args, **kwargs)

Handle serializing the Profile object.

Meta

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