Skip to content

Instantly share code, notes, and snippets.

@BenjaminKlatt
Created February 14, 2021 09:35
Show Gist options
  • Save BenjaminKlatt/0bdabf385d86ab87858f7434be6dac0f to your computer and use it in GitHub Desktop.
Save BenjaminKlatt/0bdabf385d86ab87858f7434be6dac0f to your computer and use it in GitHub Desktop.
Spring RestController implementation for UserAPI Example
@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