{"info":{"_postman_id":"106f230e-7c45-dcbf-ddc9-7663bbafbf55","name":"SDR PUT Issue","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"788154","collectionId":"106f230e-7c45-dcbf-ddc9-7663bbafbf55","publishedId":"6n4Xa2N","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2017-08-10T17:47:10.000Z"},"item":[{"name":"PUT /persons/1","id":"b2b6a459-8f95-4e8f-c8d5-3a295a20f45a","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"person1u\",\n\t\"address\": \"http://localhost:8080/api/addresses/2\"\n}"},"url":"http://localhost:8080/api/persons/1","description":"<p>Updating Person #1</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","persons","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7717a6f7-5721-787a-2282-dcb913d6f46f","name":"error when updating person","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"person1u\",\n\t\"address\": \"http://localhost:8080/api/addresses/2\"\n}"},"url":"http://localhost:8080/api/persons/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"close","name":"Connection","description":""},{"key":"Content-Type","value":"application/hal+json;charset=UTF-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 09 Aug 2017 21:20:32 GMT","name":"Date","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""}],"cookie":[],"responseTime":"197","body":"{\"cause\":{\"cause\":{\"cause\":null,\"message\":\"Can not construct instance of io.github.cepr0.putissue.manytoone.Address: no String-argument constructor/factory method to deserialize from String value ('http://localhost:8080/api/addresses/2')\\n at [Source: N/A; line: -1, column: -1] (through reference chain: io.github.cepr0.putissue.manytoone.Person[\\\"address\\\"])\"},\"message\":\"Could not read payload!; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of io.github.cepr0.putissue.manytoone.Address: no String-argument constructor/factory method to deserialize from String value ('http://localhost:8080/api/addresses/2')\\n at [Source: N/A; line: -1, column: -1] (through reference chain: io.github.cepr0.putissue.manytoone.Person[\\\"address\\\"])\"},\"message\":\"Could not read an object of type class io.github.cepr0.putissue.manytoone.Person from the request!; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: Could not read payload!; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of io.github.cepr0.putissue.manytoone.Address: no String-argument constructor/factory method to deserialize from String value ('http://localhost:8080/api/addresses/2')\\n at [Source: N/A; line: -1, column: -1] (through reference chain: io.github.cepr0.putissue.manytoone.Person[\\\"address\\\"])\"}"}],"_postman_id":"b2b6a459-8f95-4e8f-c8d5-3a295a20f45a"},{"name":"GET /persons/1/address","id":"aad04630-d4bd-c030-de1b-1680715251d1","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:8080/api/persons/1/address","description":"<p>Check Address of Person #1</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","persons","1","address"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"aad04630-d4bd-c030-de1b-1680715251d1"},{"name":"PUT /parents/1","id":"b23fbbd1-8a92-ed0a-c3df-541405616a75","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"parent1u\",\n\t\"children\": [\n\t\t\t\"http://localhost:8080/api/children/3\",\n\t\t\t\"http://localhost:8080/api/children/4\"\n\t\t]\n}"},"url":"http://localhost:8080/api/parents/1","description":"<p>Updating Parent #1</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","parents","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8f2bea8e-43d3-1651-ae4f-57a4efbd8b26","name":"Error when PUT parrent #1","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"parent1u\",\n\t\"children\": [\n\t\t\t\"http://localhost:8080/api/children/3\",\n\t\t\t\"http://localhost:8080/api/children/4\"\n\t\t]\n}"},"url":"http://localhost:8080/api/parents/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"close","name":"Connection","description":""},{"key":"Content-Type","value":"application/hal+json;charset=UTF-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 09 Aug 2017 21:09:41 GMT","name":"Date","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""}],"cookie":[],"responseTime":"515","body":"{\"cause\":{\"cause\":{\"cause\":null,\"message\":\"Can not construct instance of io.github.cepr0.putissue.onetomany.Child: no String-argument constructor/factory method to deserialize from String value ('http://localhost:8080/api/children/3')\\n at [Source: N/A; line: -1, column: -1] (through reference chain: io.github.cepr0.putissue.onetomany.Parent[\\\"children\\\"]->java.util.ArrayList[0])\"},\"message\":\"Could not read payload!; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of io.github.cepr0.putissue.onetomany.Child: no String-argument constructor/factory method to deserialize from String value ('http://localhost:8080/api/children/3')\\n at [Source: N/A; line: -1, column: -1] (through reference chain: io.github.cepr0.putissue.onetomany.Parent[\\\"children\\\"]->java.util.ArrayList[0])\"},\"message\":\"Could not read an object of type class io.github.cepr0.putissue.onetomany.Parent from the request!; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: Could not read payload!; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of io.github.cepr0.putissue.onetomany.Child: no String-argument constructor/factory method to deserialize from String value ('http://localhost:8080/api/children/3')\\n at [Source: N/A; line: -1, column: -1] (through reference chain: io.github.cepr0.putissue.onetomany.Parent[\\\"children\\\"]->java.util.ArrayList[0])\"}"}],"_postman_id":"b23fbbd1-8a92-ed0a-c3df-541405616a75"},{"name":"GET /parents/1/children","id":"4b16e4eb-0449-aa66-83d5-914efbe8719e","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:8080/api/parents/1/children","description":"<p>Check Parent #1 Children</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","parents","1","children"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b16e4eb-0449-aa66-83d5-914efbe8719e"}]}