{"action":"published","release":{"url":"https://api.github.com/repos/lindar-open/well-rested-client/releases/5780049","assets_url":"https://api.github.com/repos/lindar-open/well-rested-client/releases/5780049/assets","upload_url":"https://uploads.github.com/repos/lindar-open/well-rested-client/releases/5780049/assets{?name,label}","html_url":"https://github.com/lindar-open/well-rested-client/releases/tag/1.0.1","id":5780049,"tag_name":"1.0.1","target_commitish":"master","name":"Well Rested Client 1.0.1 Release","draft":false,"author":{"login":"spauny","id":6390470,"avatar_url":"https://avatars0.githubusercontent.com/u/6390470?v=3","gravatar_id":"","url":"https://api.github.com/users/spauny","html_url":"https://github.com/spauny","followers_url":"https://api.github.com/users/spauny/followers","following_url":"https://api.github.com/users/spauny/following{/other_user}","gists_url":"https://api.github.com/users/spauny/gists{/gist_id}","starred_url":"https://api.github.com/users/spauny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spauny/subscriptions","organizations_url":"https://api.github.com/users/spauny/orgs","repos_url":"https://api.github.com/users/spauny/repos","events_url":"https://api.github.com/users/spauny/events{/privacy}","received_events_url":"https://api.github.com/users/spauny/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2017-03-17T11:16:21Z","published_at":"2017-03-17T11:30:36Z","assets":[{"url":"https://api.github.com/repos/lindar-open/well-rested-client/releases/assets/3427257","id":3427257,"name":"well-rested-client-1.0.1.jar","label":null,"uploader":{"login":"spauny","id":6390470,"avatar_url":"https://avatars0.githubusercontent.com/u/6390470?v=3","gravatar_id":"","url":"https://api.github.com/users/spauny","html_url":"https://github.com/spauny","followers_url":"https://api.github.com/users/spauny/followers","following_url":"https://api.github.com/users/spauny/following{/other_user}","gists_url":"https://api.github.com/users/spauny/gists{/gist_id}","starred_url":"https://api.github.com/users/spauny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spauny/subscriptions","organizations_url":"https://api.github.com/users/spauny/orgs","repos_url":"https://api.github.com/users/spauny/repos","events_url":"https://api.github.com/users/spauny/events{/privacy}","received_events_url":"https://api.github.com/users/spauny/received_events","type":"User","site_admin":false},"content_type":"application/java-archive","state":"uploaded","size":23406,"download_count":0,"created_at":"2017-03-17T11:18:41Z","updated_at":"2017-03-17T11:18:42Z","browser_download_url":"https://github.com/lindar-open/well-rested-client/releases/download/1.0.1/well-rested-client-1.0.1.jar"}],"tarball_url":"https://api.github.com/repos/lindar-open/well-rested-client/tarball/1.0.1","zipball_url":"https://api.github.com/repos/lindar-open/well-rested-client/zipball/1.0.1","body":"Release 1.0.1 comes with: \r\n\r\n- support for custom date serializers and deserializers and date formats: \r\n\r\nSet date format (please note, the date format **overrides** any set serializers and deserializers):\r\n``` java\r\nResponseVO serverResponse = WellRestedRequest.build(url).setDateFormat(\"yyyy-MM-dd\").post(myObj);\r\n```\r\n\r\nSet provided String date serializer with custom format, Long date serializer or your own serializer:\r\n\r\n``` java\r\nResponseVO serverResponse = WellRestedRequest.build(url).setDateSerializer(new StringDateSerializer(\"yyyy/MM/dd\")).post(myObj); \r\nResponseVO serverResponse = WellRestedRequest.build(url).setDateSerializer(new LongDateSerializer()).post(myObj); \r\nResponseVO serverResponse = WellRestedRequest.build(url).setDateSerializer(new MyCustomDateSerializer()).post(myObj); \r\n```\r\n\r\nSet provided date Deserializer with custom formats or your own deserializer:\r\n\r\n``` java\r\nResponseVO serverResponse = WellRestedRequest.build(url).setDateDeserializer(new DateDeserializer(\"yyyy/MM/dd\")).post(myObj); \r\nResponseVO serverResponse = WellRestedRequest.build(url).setDateDeserializer(new DateDeserializer(Arrays.asList(\"yyyy/MM/dd\", \"dd/MM/yyyy\"))).post(myObj); \r\nResponseVO serverResponse = WellRestedRequest.build(url).setDateDeserializer(new MyCustomDateDeserializer()).post(myObj); \r\n```\r\n\r\n- the Result class has also been improved to support **filter**, **map**, **flatMap**, **ifSuccess** and **orElse** methods. Now something like this is possible: \r\n\r\n``` java\r\nthis.myService.getResultResponseFromServer()\r\n                .filter(resp -> NumberUtils.isParsable(resp))\r\n                .map(resp -> new BigDecimal(resp))\r\n                .orElse(BigDecimal.ZERO);\r\n```"}}
{"actor":{"display_login":"spauny"}}