These are the API endpoints:
13 |These are best tested with this Postman collection.
22 | 23 | -------------------------------------------------------------------------------- /demos/cosmos-db/demo/src/main/java/com/example/demo/controller/ChangeFeedController.java: -------------------------------------------------------------------------------- 1 | package com.example.demo.controller; 2 | 3 | import com.example.demo.service.ChangeFeedService; 4 | import com.example.demo.model.Product; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.http.MediaType; 8 | import org.springframework.web.bind.annotation.GetMapping; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.RestController; 11 | import reactor.core.publisher.Flux; 12 | 13 | @RestController 14 | @RequestMapping("/api/changefeed") 15 | public class ChangeFeedController { 16 | 17 | @Autowired 18 | ChangeFeedService changeFeedService; 19 | 20 | @GetMapping(produces = MediaType.TEXT_EVENT_STREAM_VALUE) 21 | public Flux10 | {{site.description}} 11 |
12 | {% include links.html %} 13 |