// /users @GetMapping() public User[] getAll() { return users; } // /[email protected]&password=password @GetMapping(params={"email", "password}) public User getByEmailAndPassword( @RequestParam String email, // email @RequestParam String password // password ) { // Do whatever return user; }
api/users/1
api/users?=1