Salman Manoe 0d80bf59a9 Create service migrasi pasien
Pembuatan fitur pencatatan status migrasi data pasien
2023-11-06 15:44:25 +07:00

31 lines
994 B
Java

package com.jasamedika.medifirst2000.controller;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jasamedika.medifirst2000.service.MigrasiPasienService;
/**
* @author Salman
* @version 1.0.0
* @since 06/11/2023
*/
@RestController
@RequestMapping("/migrasi/pasien")
public class MigrasiPasienController {
@Autowired
private MigrasiPasienService migrasiPasienService;
@RequestMapping(value = "/init", method = GET, produces = APPLICATION_JSON_VALUE)
public ResponseEntity<Object> initiateMigrasiPasien() {
migrasiPasienService.init();
return new ResponseEntity<>(null, HttpStatus.OK);
}
}