Skip to content

LeslieZT/pet-adoption-backend

Repository files navigation

Happy Paws Logo

Backend Repository

Developed by Leslie Zarate.

Express.js NodeJS TypeScript Prisma Supabase

Website Link Backend Link

Documentation

Table of Contents

About

Welcome to the Happy Paws API, the backend powering the Happy Paws platform, where shelters and pet lovers connect to facilitate pet adoptions.

Database

Entity Relationship Diagram

Endpoints

Authentication

Sign Up (POST)
https://happypaws-api.up.railway.app/api/v1/authentication/sign-up
Login (POST)
https://happypaws-api.up.railway.app/api/v1/authentication/sig-in
Login with OAuth (POST)
https://happypaws-api.up.railway.app/api/v1/authentication/sign-in/providers
Login with OAuth Callback (POST)
https://happypaws-api.up.railway.app/api/v1/authentication/sign-in/providers/:provider/callback
Log Out (POST)
https://happypaws-api.up.railway.app/api/v1/authentication/sign-out

Pet

Create Pet (POST)
https://happypaws-api.up.railway.app/api/v1/pets
Get Favorite Pets (POST)
https://happypaws-api.up.railway.app/api/v1/pets/favorite
Get Pet (POST)
https://happypaws-api.up.railway.app/api/v1/pets/find-one
Get Pet Breeds (POST)
https://happypaws-api.up.railway.app/api/v1/pets/breeds
Get Pet Categories (POST)
https://happypaws-api.up.railway.app/api/v1/pets/categories

Donation

Checkout (POST)
https://happypaws-api.up.railway.app/api/v1/donation/checkout
Success (GET)
https://happypaws-api.up.railway.app/api/v1/donation/success
Cancel (GET)
https://happypaws-api.up.railway.app/api/v1/donation/cancel

Users

Get User Profile (GET)
https://happypaws-api.up.railway.app/api/v1/users/profile
Update User By Id (PUT)
https://happypaws-api.up.railway.app/api/v1/users/profile

Storage Manager

Upload Image (POST)
https://happypaws-api.up.railway.app/api/v1/storage/upload