mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 23:35:50 +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 javax.validation.constraints.NotEmpty;
|
||||||
|
|
||||||
import org.springframework.samples.petclinic.owner.Owner;
|
import org.springframework.samples.petclinic.owner.Owner;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Awadhesh Kumar
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class NewOwnerForm {
|
public class NewOwnerForm {
|
||||||
@NotEmpty
|
@NotEmpty
|
||||||
private String firstName;
|
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.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Awadhesh Kumar
|
||||||
|
*
|
||||||
|
*/
|
||||||
@RestController("OwnerRestController")
|
@RestController("OwnerRestController")
|
||||||
@RequestMapping("/api/owner")
|
@RequestMapping("/api/owner")
|
||||||
public class OwnerController {
|
public class OwnerController {
|
||||||
|
|
Loading…
Reference in a new issue