{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/384","labels_url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/384/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/384/comments","events_url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/384/events","html_url":"https://github.com/spring-projects/spring-hateoas/issues/384","id":104768241,"number":384,"title":"A few problems - test cases included!","user":{"login":"claym","id":230486,"avatar_url":"https://avatars.githubusercontent.com/u/230486?v=3","gravatar_id":"","url":"https://api.github.com/users/claym","html_url":"https://github.com/claym","followers_url":"https://api.github.com/users/claym/followers","following_url":"https://api.github.com/users/claym/following{/other_user}","gists_url":"https://api.github.com/users/claym/gists{/gist_id}","starred_url":"https://api.github.com/users/claym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claym/subscriptions","organizations_url":"https://api.github.com/users/claym/orgs","repos_url":"https://api.github.com/users/claym/repos","events_url":"https://api.github.com/users/claym/events{/privacy}","received_events_url":"https://api.github.com/users/claym/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-03T19:46:38Z","updated_at":"2015-09-03T19:54:19Z","closed_at":null,"body":"It's entirely possible I'm doing something wrong, and it's possible I'm submitting this to the wrong place (spring-data-rest doesn't have github issues), but I've had some issues with things like\r\n\r\nreturnBodyOnCreate\r\nreturnBodyOnUpdate\r\nexposeIds\r\n\r\nThe test cases can be found in this project:\r\n\r\nhttps://github.com/claym/hateoas/tree/spring-hateoas-test-cases\r\n\r\nNotes on each test case in HateoasApplicationTests.java\r\n\r\nexposedIds(): works, as specified in hateoas.RestRepoConfig.java\r\n\r\nexposedIdsInResponseEntity(): Traverson look up of a collection - the `Resource<Widget>` don't have ids. The other body values are there.\r\n\r\nreturnBodyOnCreate(): Should return body on create, does not, just an empty, newly instantiated object. Pretty straight forward.\r\n\r\nreturnBodyOnUpdate(): A little contrived, doing the PUT through exchange(), but I would think this would return an object on update.\r\n\r\nIt is *entirely* possible I am doing things wrong, so if I am, please let me know. \r\n\r\nI've done what I can to verify creates/updates are happening appropriately on the server, but the responses are just a little odd.\r\n\r\nI'm using: \r\n\r\nSpring Boot 1.3.0M4, as 1.2.5 has issues with the RestRespositoryConfiguration\r\n\r\nthis uses spring-data-rest 2.4.0RC1 - oddly enough if you use 2.4.0-RELEASE, you get this error:\r\n\r\n`java.lang.ClassNotFoundException: org.springframework.data.rest.core.config.EnumTranslationConfiguration`\r\n\r\nSpring hateoas 0.18.0-RELEASE - 0.17-RELEASE has some issues with Traverson\r\n\r\nThere's a gradle build file included, and it does everything in memory, so hopefully you should just be able to pull and run `gradle test`.\r\n\r\nLet me know what I'm doing wrong or if you have any questions."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/comments/137556980","html_url":"https://github.com/spring-projects/spring-hateoas/issues/384#issuecomment-137556980","issue_url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/384","id":137556980,"user":{"login":"gregturn","id":311040,"avatar_url":"https://avatars.githubusercontent.com/u/311040?v=3","gravatar_id":"","url":"https://api.github.com/users/gregturn","html_url":"https://github.com/gregturn","followers_url":"https://api.github.com/users/gregturn/followers","following_url":"https://api.github.com/users/gregturn/following{/other_user}","gists_url":"https://api.github.com/users/gregturn/gists{/gist_id}","starred_url":"https://api.github.com/users/gregturn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregturn/subscriptions","organizations_url":"https://api.github.com/users/gregturn/orgs","repos_url":"https://api.github.com/users/gregturn/repos","events_url":"https://api.github.com/users/gregturn/events{/privacy}","received_events_url":"https://api.github.com/users/gregturn/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T19:54:19Z","updated_at":"2015-09-03T19:54:19Z","body":"For Spring Data REST, you can open issues here => https://jira.spring.io/browse/DATAREST\r\n\r\nI would suggest testing against Spring HATEOAS 0.19.0, using Boot 1.3.0.M4 (which you are), and setting <spring-data-release.train> to Gosling-RELEASE.\r\n\r\nThis way, you will be using the latest release of things."}}