- Production:
https://animalia.haidar.dev
- Local:
http://localhost:3000
Endpoint | HTTP | Description |
---|---|---|
/animals |
GET |
Get all animals |
/animals/:id |
GET |
Get animal by id |
/animals/seed |
POST |
Seed all initial animals |
/animals |
POST |
Add new animal |
/animals |
DELETE |
Delete all animals |
/animals/:id |
DELETE |
Delete animal by id |
/animals/:id |
PUT |
Update animal by id |
To install dependencies:
bun install
To run:
bun dev
Open http://localhost:3000.