Added author name on file.

This commit is contained in:
Awadhesh Kumar 2020-04-27 20:59:10 +05:30
parent b91651ad2b
commit cacf6f0fdd
2 changed files with 10 additions and 2 deletions

View file

@ -4,7 +4,11 @@ import javax.validation.constraints.Digits;
import javax.validation.constraints.NotEmpty;
import org.springframework.samples.petclinic.owner.Owner;
/**
*
* @author Awadhesh Kumar
*
*/
public class NewOwnerForm {
@NotEmpty
private String firstName;

View file

@ -12,7 +12,11 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
*
* @author Awadhesh Kumar
*
*/
@RestController("OwnerRestController")
@RequestMapping("/api/owner")
public class OwnerController {