Created
September 10, 2017 05:15
-
-
Save shazin/5db4242b81640187fb8dccc48d3d0354 to your computer and use it in GitHub Desktop.
This file contains 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 | |
@RequestMapping("/people") | |
public class PeopleController { | |
@Autowired | |
private PersonService blockingService; | |
@GetMapping | |
public Flux<Person> getPeople() { | |
return Flux.fromIterable(blockingService.getPeople()); | |
} | |
@GetMapping("/blocking") | |
public List<Person> getPeopleBlocking() { | |
return blockingService.getPeople(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment