update help
This commit is contained in:
parent
2e2fb930f7
commit
91cfb48568
@ -14,6 +14,7 @@ import net.sf.jasperreports.export.SimpleOutputStreamExporterOutput;
|
|||||||
import net.sf.jasperreports.export.SimpleXlsxReportConfiguration;
|
import net.sf.jasperreports.export.SimpleXlsxReportConfiguration;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.servlet.ModelAndView;
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
@ -50,6 +51,14 @@ public class ReportingController {
|
|||||||
public ReportingController() {
|
public ReportingController() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = "/help", method = RequestMethod.GET)
|
||||||
|
public ResponseEntity<String> getHelp() {
|
||||||
|
// Example JSON response
|
||||||
|
String jsonResponse = "{\"message\": \"Help endpoint\", \"status\": \"200\"}";
|
||||||
|
return ResponseEntity.ok(jsonResponse); // Returns 200 OK with JSON
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = {"/label-gizi/{noregistrasi}"}, method = {RequestMethod.GET})
|
@RequestMapping(value = {"/label-gizi/{noregistrasi}"}, method = {RequestMethod.GET})
|
||||||
public void exportLabelGiziTest(@PathVariable("noregistrasi") String noregistrasi,
|
public void exportLabelGiziTest(@PathVariable("noregistrasi") String noregistrasi,
|
||||||
@RequestParam(value = "jnsdiet", required = false) String jnsdiet,
|
@RequestParam(value = "jnsdiet", required = false) String jnsdiet,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user