package nl.avansc1.facturatie.api.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * This controller is responsible for importing declarations
 *
 * @author Bob van der Valk
 */
@RequestMapping("/import")
@Controller
public class ImportController {

}

@@ -40,16 +40,65 @@
 oller;%0A%0A
+import nl.avansc1.facturatie.api.service.Import;%0A
 import o
@@ -201,16 +201,133 @@
 Mapping;
+%0Aimport org.xml.sax.SAXException;%0A%0Aimport javax.xml.parsers.ParserConfigurationException;%0Aimport java.io.IOException;
 %0A%0A/**%0A *
@@ -491,11 +491,272 @@
 oller %7B%0A
+    @RequestMapping(%22/%22)%0A    public String importRoute() throws ParserConfigurationException, SAXException, IOException %7B%0A        Import xml = Import.importWithTestFile(%22treatments.xml%22);%0A        xml.start();%0A        return %22Import succesfully completed%22;%0A    %7D
 %0A%7D%0A

Add working controller. XML IMPORTER DONE not tested yet