# API REST — v1

Base URL: `http://localhost:8000/api/v1`

## Formato de resposta

```json
{
  "success": true,
  "data": {},
  "message": "Opcional"
}
```

## Health

```http
GET /health
```

## Autenticação

### Registro

```http
POST /auth/register
Content-Type: application/json

{
  "name": "João Silva",
  "email": "joao@empresa.com",
  "password": "SenhaSegura123!",
  "password_confirmation": "SenhaSegura123!"
}
```

### Login

```http
POST /auth/login

{
  "email": "joao@empresa.com",
  "password": "SenhaSegura123!",
  "remember": true
}
```

Resposta `data.token`:

```json
{
  "accessToken": "...",
  "tokenType": "Bearer",
  "expiresIn": 28800
}
```

### Usuário autenticado

```http
GET /auth/me
Authorization: Bearer {accessToken}
```

### Logout

```http
POST /auth/logout
Authorization: Bearer {accessToken}
```
