reverting unnecessary files

This commit is contained in:
Yasin Bhojawala
2017-10-29 17:24:59 +05:30
parent e56da99216
commit 9fee77a9d9
2 changed files with 0 additions and 60 deletions
@@ -1,21 +0,0 @@
package org.baeldung.converter.controller;
import com.baeldung.toggle.Employee;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/string-to-employee")
public class StringToEmployeeConverterController {
@GetMapping
public ResponseEntity<Object> getStringToEmployee(@RequestParam("employee") Employee employee) {
return ResponseEntity.ok(employee);
}
@PostMapping(consumes = {MediaType.TEXT_PLAIN_VALUE})
public ResponseEntity<Object> postStringToEmployee(@RequestBody Employee employee) {
return ResponseEntity.ok(employee);
}
}