Created
February 14, 2021 09:35
-
-
Save BenjaminKlatt/0bdabf385d86ab87858f7434be6dac0f to your computer and use it in GitHub Desktop.
Spring RestController implementation for UserAPI Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
public class UserApiController implements UserApi { | |
private Map<String, User> users = new HashMap<>(); | |
@Override | |
public List<User> findAll() { | |
return new ArrayList<>(users.values()); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment