API Documentation

This documentation provides information about the Harborstay Nests API endpoints, their usage, and expected responses.

Authentication
POST
/api/auth/signin

Sign in a user

Request Body:
{
  "email": "string",
  "password": "string"
}
Responses:
200:
{
  "token": "string",
  "user": "object"
}
401:
{
  "error": "Invalid credentials"
}
POST
/api/auth/signup

Register a new user

Request Body:
{
  "firstName": "string",
  "lastName": "string",
  "email": "string",
  "password": "string"
}
POST
/api/auth/forgot-password

Request password reset

Request Body:
{
  "email": "string"
}
POST
/api/auth/reset-password

Reset password with token

Request Body:
{
  "token": "string",
  "password": "string"
}