Skip to content

TechGid27/WordPress-Task-Manager-Restful-API

Repository files navigation

WP Task Manager

A RESTful task management API plugin for WordPress with a clean Laravel-inspired architecture.

Plugin Structure

wp-task-manager/
├── wp-task-manager.php          # Bootstrap
├── uninstall.php                # Uninstall handler
├── README.md
├── app/
│   ├── Controllers/             # HTTP request/response handlers
│   ├── Models/                  # Database queries
│   ├── Services/                # Business logic layer
│   ├── Database/                # Schema & migrations
│   └── Admin/                   # WordPress admin UI
└── resources/
    └── admin/                   # Admin page templates

REST API

Base URL: /wp-json/wp-task-manager/v1/tasks

Method Endpoint Description
GET /tasks List all tasks (paginated, filterable)
POST /tasks Create a new task
PUT /tasks/{id} Update task status (pending/done)
DELETE /tasks/{id} Delete a task

Query Parameters (GET)

Param Type Default Description
status string Filter: pending or done
page int 1 Page number
limit int 20 Results per page (max 100)
order string DESC Sort order: ASC or DESC

Example

curl -X POST http://localhost/wordpress/wp-json/wp-task-manager/v1/tasks \
  -H "Content-Type: application/json" \
  -d '{"title": "Build something great"}'

Admin Panel

Go to WP Admin → Task Manager for a full CRUD interface.

Activation

On activation, the plugin creates the wp_task_manager_tasks table automatically. On uninstall, the table is dropped.

Requirements

  • WordPress 5.0+
  • PHP 7.4+

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors