Skip to content

arturoburigo/Adopet

Repository files navigation

apalogo

Adopet

Um site para uma ong de pets visando promover a adoção de animais e eventos de adoção

O site pode ser acessado clicando aqui

Telas (Client side)

image

image

image

AdoPet API Documentation

Authentication

Register User

POST /register

Request Body

Field Type Description
name string User's full name
email string User's email
password string User's password

Login

POST /sessions

Request Body

Field Type Description
email string User's email
password string User's password

Pets Endpoints

List All Pets

GET /pets

Get Pet by ID

GET /pets/{petId}

Create Pet

POST /pets

Request Body (Multipart Form)

Field Type Description
name string Pet's name
age number Pet's age
breed string Pet's breed
size string Pet size (small/medium/large)
sex string Pet's sex (M/F)
about string Description about the pet
castrate boolean Whether pet is neutered/spayed
vacinated boolean Vaccination status
whatsapp string Contact whatsapp number
petImg file Pet's image

Update Pet

PUT /pets/{petId}

(Uses same multipart form data as Create Pet)

Delete Pet

DELETE /pets/{petId}

Events Endpoints

List All Events

GET /event

Create Event

POST /event

Request Body (Multipart Form)

Field Type Description
title string Event title
description string Event details
date string Event date (DD/MM/YYYY)
img file Event image

Delete Event

DELETE /event/{eventId}

Authentication Notes

  • Most endpoints require a Bearer Token obtained from the /sessions endpoint
  • Token is valid for a limited time (typically 1 hour)
  • Include the token in the Authorization header for protected routes

Base URLs

  • Production: https://adopetapi-production.up.railway.app
  • Local Development: http://localhost:3333

Tech Stack

Client: React

Server: Node, Express

apalogo

About

FullStack application for a Pet ONG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •