Welcome to the PHP API Boilerplate. This is a RESTful API with JWT authentication.
api/v1/auth/register - Register a new userapi/v1/auth/login - Login with email and passwordapi/v1/auth/refresh - Refresh access tokenapi/v1/auth/logout - Logout (revoke refresh token)api/v1/setup - Initialize the database schema and seed with example dataapi/v1/setup/create - Create database schema onlyapi/v1/setup/seed - Seed database with example data onlyapi/v1/users - Get all usersapi/v1/users/{id} - Get a specific userapi/v1/users - Create a new user (admin only)api/v1/users/{id} - Update a userapi/v1/users/{id} - Delete a userapi/v1/posts - Get all postsapi/v1/posts/{id} - Get a specific postapi/v1/posts - Create a new postapi/v1/posts/{id} - Update a postapi/v1/posts/{id} - Delete a postapi/v1/pets - Get all petsapi/v1/pets/{id} - Get a specific petapi/v1/pets - Create a new petapi/v1/pets/{id} - Update a petapi/v1/pets/{id} - Delete a petMost endpoints require authentication via JWT. To authenticate:
POST api/v1/auth/register with email and password (or use existing credentials)POST api/v1/auth/login with email and passwordAuthorization header:
Authorization: Bearer YOUR_ACCESS_TOKEN