APV Backend API
Overview
Section titled “Overview”The APV backend is a Node.js + Express API backed by MongoDB. It exposes two route groups for veterinarians and patients and uses JWT-based auth.
Base URL
Section titled “Base URL”http://localhost:4000
Quickstart
Section titled “Quickstart”npm installnpm run devAuthentication summary
Section titled “Authentication summary”- Send
Authorization: Bearer <token>on protected routes. - Tokens include
{ id: <veterinario_id> }and expire in30d. - Auth failures return
403with a JSON{ "msg": "..." }response.
API groups
Section titled “API groups”/api/veterinarios/api/pacientes
For environment variables and local setup, see Getting Started.