You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
We should allow developer to inject beans in converter and interceptor fields of @Rest. Right now, even if a bean is set in one of these fields, the generated code will create a new instance of the base class.
thanks for opening the issue, that was my stack thread. I have some working code on how to do an authenticated rest client. I think the problem was that attaching the interceptor in the annotated @rest interface would just point to the plain old non annotated version, the solution is to add the @ebean interceptor programatically in your activity.
Activity
bperin commentedon Sep 18, 2013
thanks for opening the issue, that was my stack thread. I have some working code on how to do an authenticated rest client. I think the problem was that attaching the interceptor in the annotated @rest interface would just point to the plain old non annotated version, the solution is to add the @ebean interceptor programatically in your activity.
Rest interface
Rest interceptor
shared prefs that holds an api key and session key
and then in my main activity
DayS commentedon Jan 20, 2014
This is a duplicate of #661
yDelouis commentedon Jan 20, 2014
This is not fully a duplicate of #661 because #661 is only about interceptors and this one is also about converters.
DayS commentedon Jan 20, 2014
Yep. And I wanted to ask you to add this on your PR :)
yDelouis commentedon Jan 20, 2014
Done :)
DayS commentedon Apr 6, 2014
Feature merged