package com.realnet.basicp1.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
import org.springframework.http.*;
import com.realnet.basicp1.Entity.Testlist;
import com.realnet.basicp1.Services.TestlistInsertService1;
@RequestMapping(value = "/Testlist")
@RestController
public class TestlistInsertController1{
	
	@Autowired
	private TestlistInsertService1 Service;

@PostMapping("/Testlist_insert") 
	public  ResponseEntity<?> insert(@RequestBody Testlist testlist) {
		Testlist insertaction = Service.insertaction(testlist);
		return new ResponseEntity<>(insertaction, HttpStatus.OK);
	}

}