Skip to content

Commit 560d2ec

Browse files
committed
2 parents f207097 + b58869a commit 560d2ec

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main/java/com.ericsson.ei.frontend/SubscriptionFilesController.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
import org.springframework.web.bind.annotation.RequestMapping;
3434
import org.springframework.web.bind.annotation.RequestMethod;
3535
import org.springframework.web.bind.annotation.ResponseBody;
36+
import org.springframework.web.bind.annotation.RequestBody;
37+
3638

3739
@Controller
3840
public class SubscriptionFilesController {
@@ -42,7 +44,7 @@ public class SubscriptionFilesController {
4244

4345

4446
@RequestMapping(value = "/download/subscriptiontemplate", method = RequestMethod.GET, produces = APPLICATION_JSON)
45-
public @ResponseBody void downloadA(HttpServletResponse response) throws IOException {
47+
public @ResponseBody void getSubscriptionJsonTemplate(HttpServletResponse response) throws IOException {
4648
File file = getFile(subscriptionFilePath);
4749
InputStream in = new FileInputStream(file);
4850

@@ -51,6 +53,13 @@ public class SubscriptionFilesController {
5153
response.setHeader("Content-Length", String.valueOf(file.length()));
5254
FileCopyUtils.copy(in, response.getOutputStream());
5355
}
56+
57+
58+
// @RequestMapping(value = "/upload/subscriptions", method = RequestMethod.GET, produces = APPLICATION_JSON)
59+
// public @ResponseBody void validateAndCreateSubscriptions(@RequestBody File subscriptionJsonFile) throws IOException {
60+
//
61+
//
62+
// }
5463

5564

5665
private File getFile(String filePath) throws FileNotFoundException {

0 commit comments

Comments
 (0)