package com.sysview.docauto.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.sysview.docauto.model.Componente;
import com.sysview.docauto.service.ComponenteService;

@RestController
@RequestMapping("/componentes")
public class ComponenteController {
	
	@Autowired ComponenteService componenteService;
	
	@RequestMapping(value="/", method=RequestMethod.POST)
	 public List<Componente> componentesel(@RequestBody Componente componente){
		return componenteService.filterByComponente(componente);		
	}

}

@@ -633,21 +633,27 @@
 alue
-=
+ = 
 %22/%22,
- 
+%0A%09%09
 method
-=
+ = 
 Requ
@@ -666,16 +666,168 @@
 hod.POST
+,%0A%09%09headers = %22Accept=%22 + MediaType.APPLICATION_JSON_VALUE,%0A%09%09consumes = MediaType.APPLICATION_JSON_VALUE,%0A%09%09produces = MediaType.APPLICATION_JSON_VALUE
 )%0A%09 publ

fix unsupported MediaType error