X Tutup
The Wayback Machine - https://web.archive.org/web/20200912161434/https://github.com/bliblidotcom/api-client
Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Blibli API Client

Declarative API Client using Spring Web Client and Reactor Netty

Dependency

<dependencies>
    <dependency>
        <groupId>com.blibli.oss</groupId>
        <artifactId>api-client</artifactId>
        <version>${api-client.version}</version>
    </dependency>
</dependencies>

<repository>
  <snapshots>
    <enabled>false</enabled>
  </snapshots>
  <id>bintray-bliblidotcom-maven</id>
  <name>bintray</name>
  <url>https://dl.bintray.com/bliblidotcom/maven</url>
</repository>

How to use It

@EnableApiClient
@SpringBootApplication
public class YourApplication {

}
@ApiClient(
  name = "exampleClient"
)
public interface ExampleClient {

  @RequestMapping("/")
  Mono<String> get();

}
# application.properties
api.client.configs.exampleClient.url=http://example.com
api.client.configs.exampleClient.read-timeout=5s
api.client.configs.exampleClient.write-timeout=5s
api.client.configs.exampleClient.connect-timeout=5s

Supported Annotation

  • @RequestMapping
  • @RequestBody
  • @RequestParam
  • @RequestHeader
  • @PathVariable
  • @CookieValue
  • @RequestPart

About

Declarative API Client for Spring Boot

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.
X Tutup