Alpendiz API

Portada de la API. Base: http://localhost:3000

Estado

GET /status

Comprobación programática del servicio

curl http://localhost:3000/status

Autenticación

El servidor usa una cookie HttpOnly llamada token para sesiones.

POST /register
curl -X POST -H "Content-Type: application/json" -d '{"email":"user@example.com","password":"secret","nombre":"Juan"}' http://localhost:3000/register
POST /login
curl -X POST -H "Content-Type: application/json" -d '{"email":"user@example.com","password":"secret"}' -c cookie.txt http://localhost:3000/login
GET /auth/verify
curl -b cookie.txt http://localhost:3000/auth/verify