Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void receiveIssueCreatedActivities() {
- /* Формируем GET HTTP-запрос по ресурсу
- /activites?category=IssueCreatedCategory
- */
- Mono<JsonNode[]> request = client.get()
- .uri(uriBuilder -> uriBuilder
- .path("/activites/")
- .queryParam("category", "IssueCreatedCategory")
- .build())
- .header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
- .retrieve()
- .bodyToMono(JsonNode[].class);
- JsonNode[] responseData = request.block();
- for (JsonNode item:responseData) {
- receivedEventData.put(item);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement