Skip to content

Instantly share code, notes, and snippets.

@claymccoy
Created August 30, 2017 02:18
Show Gist options
  • Save claymccoy/7bb9f255f673872057a87a69e5f01f77 to your computer and use it in GitHub Desktop.
Save claymccoy/7bb9f255f673872057a87a69e5f01f77 to your computer and use it in GitHub Desktop.
@RestController
public final class MathController {
@RequestMapping("addition")
public AdditionResponse addition(@RequestParam int addend, @RequestParam int augend) {
return new AdditionResponse(addend, augend);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment