Skip to content

[Resources] Add "beginner" (true/false) as a field to the /resources endpoint #157

Closed
@lpatmo

Description

@lpatmo

Context

In the design hangout with @adachiu a few weeks ago, we raised the idea of adding a beginner boolean to /resources as a new field (instead of specifying beginner/intermediate/advanced).

Acceptance Criteria

[ ] Beginner (true/false) should be returned as a field when querying a resource
[ ] Add beginner to the model and make sure migration files are checked in
[ ] Serialize
[ ] Write tests

Example JSON response from a GET /resources call:

 {
            "guid": "4e85dbb6-d519-11ea-a622-0242ac130002",
            "author": "",
            "title": "asldfkjadsf",
            "description": "",
            "url": "https://gitduck.com",
            "referring_url": "",
            "beginner_friendly": true,
            "other_referring_source": "",
            "user": {
                "id": 229,
                "username": "aug2nd",
                "first_name": "Linda",
                "last_name": "Peng",
                "is_superuser": false
            },
            "date_published": "2020-08-02T16:38:45.651676-07:00",
            "created": "2020-08-02T16:38:45.652112-07:00",
            "modified": "2020-08-02T16:38:45.651710-07:00",
            "media_type": "Podcast",
            "paid": true,
            "tags": []
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions