Candidate Name: Jishnu Snair
Date: October 20, 2025
Spring Boot REST API for task management with command execution. Provides endpoints for creating, reading, updating, deleting, and executing tasks.
- ✅ Create, read, update, delete tasks
- ✅ Execute shell commands safely
- ✅ Search tasks by name
- ✅ Command validation for security
- ✅ In-memory storage
| Method | Endpoint | Description |
|---|---|---|
| PUT | /api/tasks |
Create/update task |
| GET | /api/tasks |
Get all tasks |
| GET | /api/tasks?id={id} |
Get task by ID |
| DELETE | /api/tasks?id={id} |
Delete task |
| GET | /api/tasks/search?name={name} |
Search tasks by name |
| PUT | /api/tasks/execute?id={id} |
Execute task command |
mvn clean install
mvn spring-boot:run