Skip to content

Latest commit

 

History

History
executable file
·
43 lines (26 loc) · 1.11 KB

README.md

File metadata and controls

executable file
·
43 lines (26 loc) · 1.11 KB

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/