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

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

}