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.Child;
import com.realnet.basicp1.Services.ChildInsertService1;
@RequestMapping(value = "/Child")
@RestController
public class ChildInsertController1{
	
	@Autowired
	private ChildInsertService1 Service;

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

}