- PHP 8.3 or higher
- Composer
- MySQL
- Symfony CLI
Step-by-step Installation Guide
1. Clone the repository:
git clone https://github.com/OyanibTech-iii/task-manager-api.git
cd task-manager-api2. Install dependencies:
composer install3. Configure Database:
Edit the .env file and update your DATABASE_URL string.
4. Setup Database Schema:
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate5. Start the Server:
symfony serveAccess the built-in UI at: http://127.0.0.1:8000/api
Use the following command to test the POST endpoint.
Note: Ensure the field names match the Entity properties (
taskTitleandtaskDescription).
curl -X 'POST' \
'http://127.0.0.1:8000/api/tasks' \
-H 'accept: application/ld+json' \
-H 'Content-Type: application/ld+json' \
-d '{
"taskTitle": "e.g TestingUgAPI",
"taskDescription": "Basta Description na dire",
"isCompleted": false,
"createdAt": "2026-02-05T09:00:00+00:00"
}'| Field | Type | Description |
|---|---|---|
taskTitle |
string | The title of the task (Required) |
taskDescription |
string | Detailed information about the task |
isCompleted |
boolean | Status of the task |
createdAt |
string (ISO8601) | Creation timestamp |
| Method | Endpoint | Function |
|---|---|---|
GET |
/api/tasks |
List all tasks |
POST |
/api/tasks |
Create a new task |
GET |
/api/tasks/{id} |
View task details |
PUT |
/api/tasks/{id} |
Update task |
DELETE |
/api/tasks/{id} |
Delete task |
## Troubleshooting
Common Issues and Solutions
If you receive a 500 Internal Server Error:
- Verify that your JSON keys match the Entity property names exactly.
- Check that the Serialization Groups
#[Groups(['category:write'])]are uncommented in theTask.phpentity. - Ensure the database connection is active.
© pacificooyanib2026. All Rights Reserved.
