Platform Release 10 Notes

From n² wiki

Jump to: navigation, search

Nearby: Platform Releases

The following new features and bug fixes were released to live on 31st March 2008

[edit] API-30 - Put item to content box

A user with full update capability is able to issue a PUT on any URI that is prefixed with a store's content box URI. The body of the PUT request will be added to the content box and processed in the usual way. The URI put to must not contain a query string and must be a valid URI according to the HTTP URI specification.

As examples, the following URIs are valid:

 http://api.talis.com/stores/{storename}/items/1
 http://api.talis.com/stores/{storename}/items/foo
 http://api.talis.com/stores/{storename}/items/-----blah-----
 http://api.talis.com/stores/{storename}/items/index.html
 http://api.talis.com/stores/{storename}/items/1/2/3/4/5

However, the following are not allowed:

 http://api.talis.com/stores/{storename}/foo
 http://api.talis.com/stores/{storename}/items?foo=1


  • PUT can be used to replace an item or create a new one, replacing triples in the metabox if necessary
  • DELETE can be used to remove an item and triples about it in the metabox
  • Conditional DELETEs and PUTs are supported so clients can ensure that modifications are only applied to versions of the item that the client has seen. This can prevent the "lost update" problem where a client gets an item and updates it inadvertently overwriting another client's changes that were made between the GET and the PUT/DELETE

See Content Item for full information

[edit] Other Bug Fixes

Other bug fixes in this release include:

Personal tools