Skip to content

[API Hangouts] Create Serializer for Hangouts Endpoint  #166

@BethanyG

Description

@BethanyG
Member

PARENT TRACKER ISSUE: #160

Create a Serializer for the New Hangouts api Endpoint. Please review issue #161 as background to make sure the latest GET representation is used, and any POST differences are taken into consideration.

See DRF ModelSerialize, DRF Serializer Relations, and DRF Nested Relationships for more information.

See https://github.com/codebuddies/backend/blob/master/cbv3_django_prototype/cbv3_django_prototype/resources/serializers.py as one implementation done for resources.

Please note that the serializer code related to Tags is its own endpoint, tagging. Below is an example from the resources endpoint on how tagging is used:

from rest_framework import serializers
from .models import Resource
from userauth.serializers import UserSerializer
from tagging.serializers import TagSerializer, TagsSerializerField


class ResourceSerializer(TagSerializer, serializers.ModelSerializer):

    tags = TagsSerializerField(model_field='tags', default='')
    media_type = serializers.SerializerMethodField()
    user = UserSerializer(read_only=True)

Activity

changed the title [-][API] Create Serializer for Hangouts Endpoint [/-] [+][API Hangouts] Create Serializer for Hangouts Endpoint [/+] on Sep 24, 2020
stale

stale commented on Oct 24, 2020

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale

stale commented on Nov 23, 2020

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

BethanyG

BethanyG commented on Nov 23, 2020

@BethanyG
MemberAuthor

Still open.

stale

stale commented on Dec 23, 2020

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lpatmo@BethanyG

        Issue actions

          [API Hangouts] Create Serializer for Hangouts Endpoint · Issue #166 · codebuddies/backend