You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

POST to a URL which does not exist

POST-ing to a URL which does not exist will now create the destination as a ghost node, and create a child node inside of it. In Fedora 5, doing so would result in a 404 response.

Fedora 6 behavior

curl -XPOST http://localhost:8080/rest/doesnotexist/

HTTP/1.1 201 Created
Location: http://localhost:8080/rest/doesnotexist/f6149604-7bdd-41a1-8a06-7a8bd4b071c6

Fedora 5 behavior

curl -XPOST http://localhost:8080/rest/doesnotexist/

HTTP/1.1 404 Not Found

Memento Changes

  1. Mementos can no longer be created by specifying a timestamp, and are always created on the current resource state at the current time.
  2. A memento can only be created if a resource has changed since the most recent memento was created. If the resource has not changed, the create memento request will return a 409-Conflict.
  3. Binaries and their descriptions are versioned independently. That is to say, creating a memento on a binary does not create a memento on its binary description, and vice versa.


  • No labels