package lan.dk.podcastserver.controller.task;

import lan.dk.podcastserver.service.DatabaseService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

/**
 * Created by kevin on 18/05/2016 for Podcast Server
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/task")
public class DatabaseController {

    private final DatabaseService databaseService;

    @RequestMapping(value = "backup", method = RequestMethod.GET)
    @ResponseStatus(HttpStatus.NO_CONTENT)
    public void backup() throws IOException {
        databaseService.backupWithDefault();
    }
}

@@ -479,22 +479,18 @@
 ;%0A%0A    @
-Reques
+Ge
 tMapping
@@ -494,52 +494,16 @@
 ing(
-value = %22backup%22, method = RequestMethod.GET
+%22backup%22
 )%0A  

use GetMapping