Skip to content

durioneae/spring-web-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-web-client

GET a resource

val response = resource.request()
                .path("/test")
                .get<TestClass>()
val test: TestClass = response.body

POST a resource

val response = resource.request()
                .path("/test")
                .post(test)

Query Param

var response = resource.request()
                .path("/test")
                .queryParam("hi", "my", "values")
                .get<TestClass>()

Query Param

var response = resource.request()
                .path("/test")
                .queryParam("hi", "my", "values")
                .get<TestClass>()

Adding Headers

 val entity = resource.request()
                    .header("Authorization", "noAuth")
                    .path("/test/list")
                    .get<List<TestClass>>()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published