- URL: http://localhost/admin
- Email:
[email protected] - Password:
password
- Email:
[email protected] - Password:
password
| Method | Endpoint | Description | Auth Required |
|---|---|---|---|
POST |
/api/register |
User registration | ❌ |
POST |
/api/login |
User login | ❌ |
POST |
/api/logout |
User logout | ✅ |
| Method | Endpoint | Description | Auth Required |
|---|---|---|---|
GET |
/api/posts |
Get all posts | ❌ |
GET |
/api/my-posts |
Get user's posts | ✅ |
POST |
/api/posts |
Create new post | ✅ |
curl -X POST http://localhost/api/register \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "John Doe",
"email": "[email protected]",
"password": "password123"
}'