Skip to content

Instantly share code, notes, and snippets.

View rvashishth's full-sized avatar
🕳️
In the rabbit hole

Rahul Vashishth rvashishth

🕳️
In the rabbit hole
View GitHub Profile
@rvashishth
rvashishth / pubspec.yaml
Last active March 28, 2019 16:19
a basic dart pubspec file
name: my_dart_app
@rvashishth
rvashishth / SpringWebClientGetOneExample.groovy
Last active October 11, 2020 11:24
Spring Reactive WebClient Get Single Response Object
import groovy.transform.CompileStatic
import groovy.transform.ToString
import org.springframework.http.HttpMethod
import org.springframework.web.reactive.function.client.WebClient
import reactor.core.publisher.Mono
@CompileStatic
class TestMe {
static void main(String[] args) {
// Prepare webClient instance
@rvashishth
rvashishth / SpringWebClientPulsarAdminClient.groovy
Created October 14, 2020 13:13
Integrate with pulsar admin api using spring webclient
import groovy.transform.CompileStatic
import groovy.transform.ToString
import org.springframework.http.HttpHeaders
import org.springframework.http.HttpMethod
import org.springframework.http.MediaType
import org.springframework.http.ResponseEntity
import org.springframework.util.LinkedMultiValueMap
import org.springframework.util.MultiValueMap
import org.springframework.web.reactive.function.BodyInserters
import org.springframework.web.reactive.function.client.WebClient