package com.example.demo.controller;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.models.TaskPO;

@RestController
public class TaskController {
	
	@PostMapping("/task/{id}")
	public String updateTask(@PathVariable Integer id, @RequestBody TaskPO task) {
		return "TODO update Task";
	}
	
	@DeleteMapping("/task/{id}")
	public String deleteTask() {
		return "TODO delete task";
	}
	
	@GetMapping("/task/{projectId}")
	public String loadProjectTasks() {
		return "TODO load Tasks of Project";
	}
	
	@PostMapping("/task") 
	public String createTask() {
		return "TODO createTask";
	}
	


}
