package com.jasamedika.medifirst2000.controller;

import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.jasamedika.medifirst2000.util.rest.RestUtil;

@RestController
public class TestConnection {

	@RequestMapping(value = "/test-tanpa-auth/index.json", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
	public ResponseEntity<String> testTomcat(){
		
		return RestUtil.defaultJsonResponse(new asal());
	}
	
	public static class asal {
		
		String asalada = "<body><h1>Jasamedika Web</h1></body>";
		
		public String getAsalada(){
			return asalada;
		}
		
		public void setAsalada(String asalada){
			this.asalada = asalada;
		}
		
		
	}
}
