Skip to content
Snippets Groups Projects
Commit f4ba8954 authored by michael.ramusi's avatar michael.ramusi
Browse files

createAccount with default values

parent 2632dae9
Branches
No related tags found
No related merge requests found
...@@ -37,9 +37,9 @@ public class http { ...@@ -37,9 +37,9 @@ public class http {
} }
@RequestMapping("/createAccount") @RequestMapping("/createAccount")
public Account createAccount(@RequestParam(value="name", defaultValue="World") String name) { public String createAccount(@RequestParam(value = "name", defaultValue = "Orphée") String name) {
accountService.send(new EventCreateAccount(1, "Creating the account", "created fist account")); accountService.send(new EventCreateAccount(1, "Creating the account", name));
return null; return name;
} }
@RequestMapping("/createProduct") @RequestMapping("/createProduct")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment