Tags: openedbox/feign
Tags
Adds base api support via single-inheritance interfaces Before this change, apis that follow patterns across a service could only be modeled by copy/paste/find/replace. Especially with a large count, this is monotonous and error prone. This change introduces support for base apis via single-inheritance interfaces. Users ensure their target interface bind any type variables and as a result have little effort to create boilerplate apis. Ex. ```java @headers("Accept: application/json") interface BaseApi<V> { @RequestLine("GET /api/{key}") V get(@param("key") String); @RequestLine("GET /api") List<V> list(); @headers("Content-Type: application/json") @RequestLine("PUT /api/{key}") void put(@param("key") String, V value); } interface FooApi extends BaseApi<Foo> { } interface BarApi extends BaseApi<Bar> { } ``` closes OpenFeign#133
Allows customized request construction by exposing Request.create() Users may wish to override percent encoding of query parameters. closes OpenFeign#227
RibbonClient use replaceFirst to remove host rather than other parts … …of the uri. refactor RibbonClient to clean url in static method fixes OpenFeigngh-221
PreviousNext