Feign: Dynamic url support

Created on 25 May 2016  路  2Comments  路  Source: OpenFeign/feign

Does feign support passing dynamic url like retrofit does?

https://futurestud.io/blog/retrofit-2-how-to-use-dynamic-urls-for-requests

Most helpful comment

Closest we have is use a parameter of type URI. This will substitute for
any base url.

All 2 comments

Closest we have is use a parameter of type URI. This will substitute for
any base url.

This is useful when wanting the handle paging in clients that return URLs in their responses for pagination. The example in RequestLine is:

@RequestLine("GET")
Response getNext(URI nextLink);
Was this page helpful?
0 / 5 - 0 ratings