mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Added author name on file.
This commit is contained in:
parent
b91651ad2b
commit
cacf6f0fdd
2 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue