{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/556","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/556/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/556/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/556","id":108343206,"number":556,"title":"Support Spring Data Pageable in Feign Client","user":{"login":"edethoor","id":13271025,"avatar_url":"https://avatars0.githubusercontent.com/u/13271025?v=3","gravatar_id":"","url":"https://api.github.com/users/edethoor","html_url":"https://github.com/edethoor","followers_url":"https://api.github.com/users/edethoor/followers","following_url":"https://api.github.com/users/edethoor/following{/other_user}","gists_url":"https://api.github.com/users/edethoor/gists{/gist_id}","starred_url":"https://api.github.com/users/edethoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edethoor/subscriptions","organizations_url":"https://api.github.com/users/edethoor/orgs","repos_url":"https://api.github.com/users/edethoor/repos","events_url":"https://api.github.com/users/edethoor/events{/privacy}","received_events_url":"https://api.github.com/users/edethoor/received_events","type":"User","site_admin":false},"labels":[{"id":113315773,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":113315774,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/labels/help%20wanted","name":"help wanted","color":"bfe5bf","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2015-09-25T15:03:56Z","updated_at":"2017-06-07T06:47:42Z","closed_at":null,"body":"I am using Feign for requesting a MicroService who support Spring Data Pageable functionnality.\n\nThis is my FeignClient Interface : \n\n``` java\n @FeignClient(FeignServiceId.SERVICE_ID)\n @RequestMapping(value = \"api/document\")\n public interface DocumentApi {\n\n    @RequestMapping(method = RequestMethod.GET, value = \"user/{userLogin}\")\n    Page<DeclarationDT> getDeclarationsByUserLogin(@PathVariable(\"userLogin\") String userLogin, Pageable pageable);\n\n}\n```\n\nWhen i make a call to the `getDeclarationsByUserLogin`, Feign do a POST request whereas i specify `RequestMethod.GET`.\n\nI think this is due to the fact that Feign not support the Spring Data Pageable functionnality.\n\nIs it possible to implement support for this feature ?\n"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/comments/306702847","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/556#issuecomment-306702847","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/556","id":306702847,"user":{"login":"GarimaJainATOS","id":29246571,"avatar_url":"https://avatars0.githubusercontent.com/u/29246571?v=3","gravatar_id":"","url":"https://api.github.com/users/GarimaJainATOS","html_url":"https://github.com/GarimaJainATOS","followers_url":"https://api.github.com/users/GarimaJainATOS/followers","following_url":"https://api.github.com/users/GarimaJainATOS/following{/other_user}","gists_url":"https://api.github.com/users/GarimaJainATOS/gists{/gist_id}","starred_url":"https://api.github.com/users/GarimaJainATOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GarimaJainATOS/subscriptions","organizations_url":"https://api.github.com/users/GarimaJainATOS/orgs","repos_url":"https://api.github.com/users/GarimaJainATOS/repos","events_url":"https://api.github.com/users/GarimaJainATOS/events{/privacy}","received_events_url":"https://api.github.com/users/GarimaJainATOS/received_events","type":"User","site_admin":false},"created_at":"2017-06-07T06:47:42Z","updated_at":"2017-06-07T06:47:42Z","body":"Hi Guys,\r\nI am trying to call below method through feignClient\r\nResponseEntity<PagedResources<TransactionResponse>> getTransactionList(\r\n\t\t\t@Valid TransactionSearchRequest categorizedTransactionSearchRequest,\r\n\t\t\t@ApiParam(\"Pageable information\") @PageableDefault(size = 05, page = 0) Pageable p);\r\nBut i am getting below exception\r\n\r\nCaused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract org.springframework.http.ResponseEntity com.worldline.fpl.banking.budget.controller.IBudgetController.getTransactionList(\r\ncom.worldline.fpl.banking.budget.json.TransactionSearchRequest,org.springframework.data.domain.Pageable)\r\n\tat feign.Util.checkState(Util.java:128)\r\n\tat feign.Contract$BaseContract.parseAndValidateMetadata(Contract.java:114)\r\n\tat org.springframework.cloud.netflix.feign.support.SpringMvcContract.parseAndValidateMetadata(SpringMvcContract.java:133)\r\n\tat feign.Contract$BaseContract.parseAndValidatateMetadata(Contract.java:64)\r\n\tat feign.hystrix.HystrixDelegatingContract.parseAndValidatateMetadata(HystrixDelegatingContract.java:34)\r\n\tat feign.ReflectiveFeign$ParseHandlersByName.apply(ReflectiveFeign.java:146)\r\n\tat feign.ReflectiveFeign.newInstance(ReflectiveFeign.java:53)\r\n\tat feign.Feign$Builder.target(Feign.java:209)\r\n\tat org.springframework.cloud.netflix.feign.HystrixTargeter.target(HystrixTargeter.java:48)\r\n\tat org.springframework.cloud.netflix.feign.FeignClientFactoryBean.loadBalance(FeignClientFactoryBean.java:146)\r\n\tat org.springframework.cloud.netflix.feign.FeignClientFactoryBean.getObject(FeignClientFactoryBean.java:167)\r\n\tat org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)\r\n\t... 44 common frames omitted\r\n\r\nWhen i debugged it, i got know that these \r\ninterface org.springframework.data.web.PageableDefault\r\ninterface javax.validation.Valid \r\nare not the feign supported annotations and that's why it is failing \r\nBut i am not getting the solid fix for it .\r\nCan anyone help me on this as soon as possible ?"}}
{"actor":{"display_login":"GarimaJainATOS"}}