Adrian Cole
0aac921f31
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 #133
10 years ago
Adrian Cole
cd0c1080df
Merge pull request #245 from Netflix/adrian.travis-gitter
...
Adds gitter webhook for travis
10 years ago
Adrian Cole
66208ffe9c
Adds gitter webhook for travis
10 years ago
Adrian Cole
cf4675da88
Merge pull request #244 from gitter-badger/gitter-badge
...
Add a Gitter chat badge to README.md
10 years ago
The Gitter Badger
201652ff26
Added Gitter badge
10 years ago
Adrian Cole
34e265aefd
bump changelog
10 years ago
unknown
e32cdf4858
Added possibility to leave slash encoded in path parameters
10 years ago
Adrian Cole
44459dae6a
Merge pull request #242 from jacob-meacham/bugfix/multiple-regexes
...
Fix regex support when there are multiple @Path regexes
10 years ago
Jacob Meacham
5c84864d78
Fix regex support when there are multiple @Path regexes
10 years ago
Adrian Cole
2f50cf9667
Merge pull request #240 from jacob-meacham/bugfix/trailing-slash-on-class
...
Fix an issue with trailing slashes in @Path annotations on classes
10 years ago
Adrian Cole
f378d9aab9
Merge pull request #241 from jacob-meacham/bugfix/regex-path-param
...
Strip regex allowed by the jaxrs spec.
10 years ago
Adrian Cole
b76459168e
Merge pull request #239 from Widen/master
...
Correct retry handling for repeatable requests
10 years ago
Jacob Meacham
226b73a5f1
Strip regex allowed by the jaxrs spec.
10 years ago
Jacob Meacham
b85d5c1efc
Fix an issue with trailing slashes in @Path annotations on classes
10 years ago
Uriah Carpenter
c18c2ee898
Correct retry handling for repeatable requests
...
Previously, the Retryer instance provided to the Builder was simply reused, but the instance keeps per-request state, causing repeatable requests to stop being retried. Fixes #236
10 years ago
Thiago Moretto
0bc994e7ca
Removes trailing slash from the URL just when just present
10 years ago
Adrian Cole
c32c8eb166
Documents how to send POST bodies
...
@brianm noticed we were missing docs on how to use POST.
10 years ago
Tristan Burch
1705c15046
Support for Apache HttpClient as Feign client
10 years ago
Adrian Cole
b8de1e87b8
Merge pull request #231 from cognitree/deflate-encoding
...
Adds deflate encoding support
10 years ago
Adrian Cole
facb4a7351
Merge pull request #232 from cognitree/jackson-deprecared-api
...
Fixes deprecated method usage of Jackson library
10 years ago
Santhosh Kumar Tekuri
2d06330b49
Adds deflate encoding support
10 years ago
Santhosh Kumar Tekuri
cbdb0b02a2
Fixes deprecated method usage of Jackson library
...
ObjectMapper#writerWithType is depreated. Code changed to use
ObjectMapper#writerFor method.
10 years ago
Adrian Cole
8dddb05a57
Merge pull request #230 from cognitree/space-encoding-in-urlparam
...
Corrects encoding of space in URL parameter
10 years ago
Santhosh Kumar Tekuri
ab6e60397d
Corrects encoding of space in URL parameter
...
According to rfc2396, space in url should be encoded as "%20" instead
of "+".
Closes #225
10 years ago
Adrian Cole
cbf15f05a1
Merge pull request #228 from Netflix/adrian.easy-custom-request
...
Allows customized request construction by exposing Request.create()
10 years ago
Adrian Cole
80f047534c
Allows customized request construction by exposing Request.create()
...
Users may wish to override percent encoding of query parameters.
closes #227
10 years ago
Adrian Cole
362f5e670f
Merge pull request #224 from jnaous/fix-retry-after-decoder
...
Correct time decoding in RetryAfterDecoder
10 years ago
Jad Naous
28b3deec59
Correct time decoding in RetryAfterDecoder
...
currentTimeNanos was not returning nanos.
10 years ago
Adrian Cole
c678daa680
Merge pull request #222 from spencergibb/ribbon-client-replace-first
...
RibbonClient use replaceFirst to remove host rather than other parts of ...
10 years ago
Spencer Gibb
9c69c0a530
RibbonClient use replaceFirst to remove host rather than other parts of the uri.
...
refactor RibbonClient to clean url in static method
fixes gh-221
10 years ago
Adrian Cole
27dc3739a0
Merge pull request #219 from Netflix/adrian.perf-example
...
Demonstrates impact of advice to cache Feign.newInstance
10 years ago
Adrian Cole
83f54c6fa6
Demonstrates impact of advice to cache Feign.newInstance
...
Shows relative performance of caching various points of construction of
a Feign Api. Adds a mesobenchmark of actually performing http requests,
so that caching performance can be placed in context.
See #214
10 years ago
Adrian Cole
9ccd1c0b64
Fixes typos
10 years ago
Adrian Cole
c2fee60164
Corrects notes on examples
...
closes #218
10 years ago
Adrian Cole
99cef807c8
Merge pull request #215 from rspieldenner/travis_cache
...
Enable caching for gradle dependencies
10 years ago
Adrian Cole
b660145238
Merge pull request #217 from Netflix/adrian.benchmarks
...
Adds JMH benchmark module
10 years ago
Adrian Cole
7612e9d6b6
Adds JMH benchmark module
...
Starts with Contract tests as this was suggested a place we may need
caching.
See #214
10 years ago
Rob Spieldenner
443669df20
Enable caching for gradle dependencies
10 years ago
Adrian Cole
ca068eb991
Merge pull request #213 from Netflix/adrian.source16-animalsniffer
...
Enforces source compatibility with animal-sniffer
10 years ago
Adrian Cole
0ed8253506
Enforces source compatibility with animal-sniffer
...
Before, finding source compatibility issues relied on building with an
old JDK. This uses animal-sniffer to enforce java language level 6.
10 years ago
Adrian Cole
8eeb1097e4
Updates examples to feign 8.1.0
10 years ago
Adrian Cole
081bd1d62b
Merge pull request #212 from rspieldenner/maven_sync
...
Enable Maven Central sync
10 years ago
Rob Spieldenner
02d3a16fa7
Enable Maven Central sync
10 years ago
Adrian Cole
6368e57e8d
Merge pull request #211 from rspieldenner/travis_release
...
Move to 2.2.9 for travisci release
10 years ago
Rob Spieldenner
a139347495
Move to 2.2.9 for travisci release
10 years ago
Adrian Cole
8dd999e5f4
Merge pull request #210 from rspieldenner/travisci
...
Move to 2.2.8 which has the release.travisci flag
10 years ago
Rob Spieldenner
17c93a50fd
Move to 2.2.8 which has the release.travisci flag to disable certain checks on tag releases
10 years ago
Adrian Cole
72c9302db5
Merge pull request #209 from Netflix/adrian.nebula-2.2.7
...
Updates to nebula 2.2.7
10 years ago
Adrian Cole
9398c2a5d1
Updates to nebula 2.2.7
10 years ago
Adrian Cole
dfb209b4ba
Merge pull request #208 from rspieldenner/travis
...
Change syntax to make it clear calling a script in directory instead of ...
10 years ago