https://api.kayparts.co/api
1.0.0 (Latest)
Sanctum / Bearer Token
| Method | Endpoint | Description | Security |
|---|---|---|---|
| POST | /api/login | Authenticates user and returns access token. | Public |
| GET | /api/user | Retrieves the current authenticated user profile. | Token Req |
| POST | /api/logout | Revokes the current access token. | Token Req |
| GET | /api/categories | List all existing categories. | Token Req |
| POST | /api/categories | Create a new category (supports multipart image). | Token Req |
| POST / PUT | /api/categories/{id} | Update category (Use POST with _method=PUT). | Token Req |
| DELETE | /api/categories/{id} | Delete an existing category. | Token Req |