[RFC] Easier creation of new calls - #3309
Conversation
|
Can you explain your use case more? |
|
Sure! So I have an HTTP API that mainly work with short-lived tokens for authentication. This token must be retrieved by calling an endpoint secured by a basic authentication. I wanted to use custom annotation to:
Now I know that the second use case can be handled by using a I ended up trying to distinguish the endpoints authenticated by a token from the token endpoint authenticated by a basic authentication using custom annotations and, unless I'm wrong, |
|
Does |
|
@swankjesse Oh nice! That works well! Maybe this use-case could be worth documenting? |
Creating new
Call<T>is far too difficult. Currently, it requires creating a new class implementingCall. Vut this is not handy in the case you just want to modify the call at run-time according to custom annotations using adapters.