File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/kotlin/com/github/mgramin/sqlboot/sql/select/wrappers Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import com.github.mgramin.sqlboot.sql.select.SelectQuery
44import com.google.gson.Gson
55import com.google.gson.reflect.TypeToken
66import org.springframework.http.MediaType
7+ import org.springframework.web.reactive.function.BodyInserters
78import org.springframework.web.reactive.function.client.WebClient
89import reactor.core.publisher.Flux
910import reactor.core.publisher.toFlux
@@ -23,8 +24,9 @@ class RestSelectQuery(
2324 override fun execute (variables : Map <String , Any >): Flux <Map <String , Any >> {
2425 val client: List <Map <String , Any >>? = WebClient
2526 .create(endpoint)
26- .get ()
27+ .post ()
2728 .uri(" /exec?query=${origin.query()} " .replace(" {" , " [" ).replace(" }" , " ]" ))
29+ .body(BodyInserters .fromObject(origin.query()))
2830 .accept(MediaType .APPLICATION_JSON )
2931 .retrieve()
3032 .bodyToMono(String ::class .java)
You can’t perform that action at this time.
0 commit comments