Sean-Meyers/CMPUT404-project-socialdistribution

Make author & authors endpoints

Ouverte

#28 ouverte le 11 févr. 2023

 (1 commentaire) (0 réaction) (1 personne assignée) (3 forks)auto 404
Featurebackendgood first issue

Métriques du dépôt

Stars
 (2 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Also involves writing a test, and setting up the author table in the db, and make a simple page that shows the json output of the api call. (Making the page will be its own issue)

What Do

  • Single Author: write a unit test(s) that goes to the URL and ensures the returned JSON is as expected.
  • Multiple Authors: Set up unit test(s).
  • Set up required fields of Authors model: https://github.com/Sean-Meyers/CMPUT404-project-socialdistribution/issues/12
  • Write Serializer and/or view for single author. (thing that makes and returns the json, however you want to accomplish that.)
  • Write Serializer and/or view for multiple authors.

Unit Tests to Pass

  • GET single author works
  • POST single author works
  • GET all authors paginated works.

Info

https://github.com/Sean-Meyers/CMPUT404-project-socialdistribution/wiki/Objects#single-author Image


https://github.com/Sean-Meyers/CMPUT404-project-socialdistribution/wiki/Objects#authors Image

Guide contributeur