MLH-Fellowship / MLH-Fellowship/orientation-project-python-24.SPR.A

Create a`SerializerMixin` to convert models into json representation.

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Tasks

  • Create a class SerializerMixin in the models.py
  • implement to_json() method
  • use jsonify to convert the current instance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open models.py and locate the model definitions. Add the SerializerMixin class with a to_json() method that uses jsonify on the current instance. Done means the mixin exists in models.py and models can produce a JSON representation through to_json().

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.