Class CSVController
- java.lang.Object
-
- uk.ac.bristol.hiddenmuseum.controller.CSVController
-
@RestController public class CSVController extends java.lang.Object
Controller to export CSV File
-
-
Constructor Summary
Constructors Constructor Description CSVController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCSV(java.lang.String q)
gathers csv relating to the query given or just the empty string if none given.java.lang.String
getCSVItem(java.lang.String q)
gathers csv relating to the item given or just the empty string if none given.
-
-
-
Method Detail
-
getCSV
@RequestMapping("/export") public java.lang.String getCSV(@RequestParam(defaultValue="",required=false) java.lang.String q)
gathers csv relating to the query given or just the empty string if none given.- Returns:
- appropriate csv file.
-
getCSVItem
@RequestMapping("/exportItem") public java.lang.String getCSVItem(@RequestParam(defaultValue="",required=false) java.lang.String q)
gathers csv relating to the item given or just the empty string if none given.- Returns:
- appropriate csv file.
-
-