Skip to content

Choose from a list of available dogs based on your preferences, powered by React and Django Rest

Notifications You must be signed in to change notification settings

jhoover4/pug-or-ugh-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pug or Ugh API

This is the eleventh project in the Treehouse Python tech degree.

Hosted at pug-or-ugh.jordanhoover.me. To view locally clone the repo, create a virtual env and run make install and make run.

Description

Paw left or right in this app to find the dog of your dreams! You can filter dogs by liked, disliked, or undecided as well as various attributes.

The frontend of the app is powered by React which communicates with an open api backend.

API Routes

To communicate with the backend api, please see the following routes.

  • To view a full list of available dogs

    • /api/dog/<pk>/liked/
  • To view a list of dogs by status (liked/disliked/undecided)

    • /api/dogs/liked/
    • /api/dogs/disliked/
    • /api/dogs/undecided/
  • To get the next dog by status (liked/disliked/undecided)

    • /api/dog/<pk>/liked/next/
    • /api/dog/<pk>/disliked/next/
    • /api/dog/<pk>/undecided/next/
  • To change the dog's status

    • /api/dog/<pk>/liked/
    • /api/dog/<pk>/disliked/
    • /api/dog/<pk>/undecided/
  • To change or set user preferences

    • /api/user/preferences/

About

Choose from a list of available dogs based on your preferences, powered by React and Django Rest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published