object(HttpSocketResponse) { body => 'http://localhost:8080/fcrepo/rest/testy7' headers => array( 'Server' => 'Apache-Coyote/1.1', 'ETag' => '"6f6d7daaa9e80c7a6968dfe7367e19a1d443f085"', 'Last-Modified' => 'Mon, 25 Jan 2016 10:15:33 GMT', 'Location' => 'http://localhost:8080/fcrepo/rest/testy7', 'Content-Type' => 'application/ld+json', 'Content-Length' => '40', 'Date' => 'Mon, 25 Jan 2016 10:15:33 GMT', 'Connection' => 'close' ) cookies => false httpVersion => 'HTTP/1.1' code => '201' reasonPhrase => 'Created' raw => 'HTTP/1.1 201 Created Server: Apache-Coyote/1.1 ETag: "6f6d7daaa9e80c7a6968dfe7367e19a1d443f085" Last-Modified: Mon, 25 Jan 2016 10:15:33 GMT Location: http://localhost:8080/fcrepo/rest/testy7 Content-Type: application/ld+json Content-Length: 40 Date: Mon, 25 Jan 2016 10:15:33 GMT Connection: close
body => '["http://localhost:8080/fcrepo/rest/testy7"]'
--
You received this message because you are subscribed to the Google Groups "Fedora Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedora-tech...@googlegroups.com.
To post to this group, send email to fedor...@googlegroups.com.
Visit this group at https://groups.google.com/group/fedora-tech.
For more options, visit https://groups.google.com/d/optout.
The response for that API call is always just the uri of the created resource. I don’t think setting content type in the headers has much effect. For uniformity across all other calls that create resources (like transactions), the location header is really what you’re looking for.~DannyOn Jan 28, 2016, at 9:35 AM, Stuart Chalk <stuart...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Fedora Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedora-tech...@googlegroups.com.
To post to this group, send email to fedor...@googlegroups.com.
Visit this group at https://groups.google.com/group/fedora-tech.
For more options, visit https://groups.google.com/d/optout.
+1. I fuzzily remember Justin requesting that a year or so ago when implementing ActiveFedora, don't remember where the ticket is.
Trey
All that means is client libraries shouldn't count on the body being useful, but if it's there it can use it, yeah?