Title: Param interceptors for @Rest · Issue #479 · androidannotations/androidannotations · GitHub
Open Graph Title: Param interceptors for @Rest · Issue #479 · androidannotations/androidannotations
X Title: Param interceptors for @Rest · Issue #479 · androidannotations/androidannotations
Description: Hi, I'm using AndroidAnnotations for an application which deals with a Rest API. For this API, I need to pass an access token as a query parameter of each request. This access token can't be hard coded in the URL so I use a ClientHttpReq...
Open Graph Description: Hi, I'm using AndroidAnnotations for an application which deals with a Rest API. For this API, I need to pass an access token as a query parameter of each request. This access token can't be hard c...
X Description: Hi, I'm using AndroidAnnotations for an application which deals with a Rest API. For this API, I need to pass an access token as a query parameter of each request. This access token can't b...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/479
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Param interceptors for @Rest","articleBody":"Hi,\n\nI'm using AndroidAnnotations for an application which deals with a Rest API.\nFor this API, I need to pass an access token as a query parameter of each request.\nThis access token can't be hard coded in the URL so I use a `ClientHttpRequestInterceptor` to add this parameter dynamically.\n\nThe problem is that I need to add this interceptor each time I use the `@Rest` annotations in `Activity` or `Fragment` which is a bit annoying, the more so as if I forget to do it, it leads me to long times of debugging...\n\nSo, I was wondering if there were possible to add a parameter for the annotation `@Rest`. The value of this annotations would be an array of classes implementing `ClientHttpRequestInterceptor`.\n\nThis would also enable us to add interceptors for logging purposes easily (and maybe a built-in log interceptor).\n\nSorry for not proposing code to solve this issue. \n**Edit**: I will submit a pull request soon.\n\nThanks for your awesome work.\n","author":{"url":"https://github.com/yDelouis","@type":"Person","name":"yDelouis"},"datePublished":"2013-01-30T11:51:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/479/androidannotations/issues/479"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:10d5ae8f-fbb8-d742-fb3e-1b20aba35b7c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A016:3D0EF5:56374B:743E7A:6A6107FD |
| html-safe-nonce | 707703469893d39725034f8837ff43bd1a645a18e3e619333ef8582913292962 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDE2OjNEMEVGNTo1NjM3NEI6NzQzRTdBOjZBNjEwN0ZEIiwidmlzaXRvcl9pZCI6IjQ0MzIzMTYyNTAyMTcwNTYyNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b78c2dc683c8b76db54c9f971a5924a6a1f80290499fd8a74d3117d0569f87c3 |
| hovercard-subject-tag | issue:10455769 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/androidannotations/androidannotations/479/issue_layout |
| twitter:image | https://opengraph.githubassets.com/86198f32cdef8c84fe716cd05f564e42c1611c1efe71f1730d6dc1e720904599/androidannotations/androidannotations/issues/479 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/86198f32cdef8c84fe716cd05f564e42c1611c1efe71f1730d6dc1e720904599/androidannotations/androidannotations/issues/479 |
| og:image:alt | Hi, I'm using AndroidAnnotations for an application which deals with a Rest API. For this API, I need to pass an access token as a query parameter of each request. This access token can't be hard c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yDelouis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 86be97fd69ac233b46e43a5eed04ceac6498abe1efaf1af3b9573eb216019c05 |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f80280886562a52fe1f6b9cab9f9c1dc3b9a78a2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width