{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1046","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1046/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1046/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1046/events","html_url":"https://github.com/swagger-api/swagger-codegen/pull/1046","id":99166807,"number":1046,"title":"Support library template (sub-template); add jersey2 template for Java client","user":{"login":"xhh","id":159740,"avatar_url":"https://avatars.githubusercontent.com/u/159740?v=3","gravatar_id":"","url":"https://api.github.com/users/xhh","html_url":"https://github.com/xhh","followers_url":"https://api.github.com/users/xhh/followers","following_url":"https://api.github.com/users/xhh/following{/other_user}","gists_url":"https://api.github.com/users/xhh/gists{/gist_id}","starred_url":"https://api.github.com/users/xhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhh/subscriptions","organizations_url":"https://api.github.com/users/xhh/orgs","repos_url":"https://api.github.com/users/xhh/repos","events_url":"https://api.github.com/users/xhh/events{/privacy}","received_events_url":"https://api.github.com/users/xhh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T09:47:18Z","updated_at":"2015-08-21T21:35:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1046","html_url":"https://github.com/swagger-api/swagger-codegen/pull/1046","diff_url":"https://github.com/swagger-api/swagger-codegen/pull/1046.diff","patch_url":"https://github.com/swagger-api/swagger-codegen/pull/1046.patch"},"body":"See #950 for background and context of this PR.\r\n\r\n* Added a `library` config option to specify the library template (sub-template) to be used\r\n  ```shell\r\n$  java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar config-help -l java\r\nCONFIG OPTIONS\r\n...\r\n        library\r\n            library template (sub-template) to use:\r\n            <default> - HTTP client: Jersey client 1.18. JSON processing: Jackson 2.4.2\r\n            jersey2 - HTTP client: Jersey client 2.6\r\n ```\r\n\r\n* Refactored [`ApiClient#invokeAPI`](https://github.com/xhh/swagger-codegen/blob/library-template-jersey2/samples/client/petstore/java/default/src/main/java/io/swagger/client/ApiClient.java#L388) and [JSON handling](https://github.com/xhh/swagger-codegen/blob/library-template-jersey2/samples/client/petstore/java/default/src/main/java/io/swagger/client/JSON.java) to make it easier to override underlying HTTP client and JSON processing \r\n\r\n* Added a `jersey2` library template to generate Java client with jersey-client 2.6 instead of the default 1.18\r\n  ```shell\r\n$ ./bin/java-petstore-jersey2.sh\r\n...\r\n\r\ncat samples/client/petstore/java/jersey2/pom.xml\r\n...\r\n<jersey-version>2.6</jersey-version>\r\n...\r\n```\r\n  The jersey2 template is mainly from PR #950 by @fehguy \r\n\r\n@fehguy please have a look at this, and if you have any concerns (e.g. the naming of the `library` option), please comment and I'll revise accordingly"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/133569425","html_url":"https://github.com/swagger-api/swagger-codegen/pull/1046#issuecomment-133569425","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1046","id":133569425,"user":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T21:35:02Z","updated_at":"2015-08-21T21:35:02Z","body":"ok wow.  This does look good to me.  I'll see about the conflicts and report back if i can't merge it"}}