fixed formatting

This commit is contained in:
Neeraj Yadav 2018-07-11 18:06:34 +05:30
parent 88f832b6b7
commit 838e1c2ef0
1 changed files with 14 additions and 0 deletions

View File

@ -45,4 +45,18 @@ public class FooController {
.setName("Foo Name") .setName("Foo Name")
.build(); .build();
} }
@RequestMapping(method = RequestMethod.POST, value = "/foos/new")
@ResponseStatus(HttpStatus.OK)
@ResponseBody
public Foo createFoo(@RequestBody final Foo foo) {
return foo;
}
@RequestMapping(method = RequestMethod.DELETE, value = "/foos/{id}")
@ResponseStatus(HttpStatus.OK)
@ResponseBody
public long deleteFoo(@PathVariable final long id) {
return id;
}
} }