Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void receiveCreateBranchData() {
- /* Формируем GET HTTP-запрос по ресурсу
- https://gitlab.com/projects/:id/repository/branches */
- Mono<JsonNode> eventsRequest = client.get()
- .uri(uriBuilder -> uriBuilder
- .path("projects/:id/repository/branches/")
- .build())
- .header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
- .retrieve()
- .bodyToMono(JsonNode.class);
- JsonNode[] responseData = eventsRequest.block();
- for (JsonNode jsonNode:responseData) {
- Pair<String, JsonNode> eventData = new Pair<>("create_branch", "jsonNode");
- receivedEventData.put(item);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement