Eazy Sacco--backend-api — API Documentation

Base URL: /api

GET /api/

Returns this documentation page (HTML).

Example:

curl -i GET http://your-host/api/

GET /api/user

Protected: auth:sanctum. Returns the authenticated user JSON.

Response (200):

{
  "id": 1,
  "name": "Example User",
  "email": "user@example.com",
  // additional attributes...
}

Example (with Sanctum token):

curl -H "Authorization: Bearer <TOKEN>" http://your-host/api/user

Notes