Skip to content

Commit b58869a

Browse files
committed
Changed name on Download Subscription entrypoint in WebController.
1 parent d61aff1 commit b58869a

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
@@ -25,6 +25,8 @@
2525
import org.springframework.web.bind.annotation.RequestMapping;
2626
import org.springframework.web.bind.annotation.RequestMethod;
2727
import org.springframework.web.bind.annotation.ResponseBody;
28+
import org.springframework.web.bind.annotation.RequestBody;
29+
2830

2931
@Controller
3032
public class SubscriptionFilesController {
@@ -34,7 +36,7 @@ public class SubscriptionFilesController {
3436

3537

3638
@RequestMapping(value = "/download/subscriptiontemplate", method = RequestMethod.GET, produces = APPLICATION_JSON)
37-
public @ResponseBody void downloadA(HttpServletResponse response) throws IOException {
39+
public @ResponseBody void getSubscriptionJsonTemplate(HttpServletResponse response) throws IOException {
3840
File file = getFile(subscriptionFilePath);
3941
InputStream in = new FileInputStream(file);
4042

@@ -43,6 +45,13 @@ public class SubscriptionFilesController {
4345
response.setHeader("Content-Length", String.valueOf(file.length()));
4446
FileCopyUtils.copy(in, response.getOutputStream());
4547
}
48+
49+
50+
// @RequestMapping(value = "/upload/subscriptions", method = RequestMethod.GET, produces = APPLICATION_JSON)
51+
// public @ResponseBody void validateAndCreateSubscriptions(@RequestBody File subscriptionJsonFile) throws IOException {
52+
//
53+
//
54+
// }
4655

4756

4857
private File getFile(String filePath) throws FileNotFoundException {

0 commit comments

Comments
 (0)