User Tools

Site Tools


api4kb_persistent_storage

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
api4kb_persistent_storage [2013/03/17 16:04]
rmbell
api4kb_persistent_storage [2013/03/17 16:05]
rmbell
Line 75: Line 75:
 REST mapping : POST REST mapping : POST
  
-TODOThis method should be defined. What is the exact semantics of updating a resource in a KB, as opposed to setting it? It could be interpreted in terms of versioning? Or the "​old"​ and "​new"​ resources should be "​merged"​ (whatever that means)?+TODOThis method should be defined. What is the exact semantics of updating a resource in a KB, as opposed to setting it? It could be interpreted in terms of versioning? Or the "​old"​ and "​new"​ resources should be "​merged"​ (whatever that means)?
  
  
Line 88: Line 88:
  
 Post-condition : The KB is not altered Post-condition : The KB is not altered
 +
 REST mapping : GET REST mapping : GET
  
Line 105: Line 106:
  
 Pre-condition : the KB contains the resource mapped by resourceID. The client must have the appropriate rights to write at exportLocation. Pre-condition : the KB contains the resource mapped by resourceID. The client must have the appropriate rights to write at exportLocation.
 +
 Integrity : the format specified by resourceDescriptor is compatible with the nature of the resource Integrity : the format specified by resourceDescriptor is compatible with the nature of the resource
 +
 Post-condition : the exportLocation will contain a serialized copy of the resource mapped by resourceId, as defined by resourceDescriptor. The KB is not altered. Post-condition : the exportLocation will contain a serialized copy of the resource mapped by resourceId, as defined by resourceDescriptor. The KB is not altered.
 +
 REST mapping : POST REST mapping : POST
  
Line 119: Line 123:
     in URI resourceId, ​                          : the URI of the resource to be deleted     in URI resourceId, ​                          : the URI of the resource to be deleted
     out TODO );     out TODO );
 +
  
 Pre-condition : the KB contains a resource mapping for resourceID ??? Pre-condition : the KB contains a resource mapping for resourceID ???
 +
 Post-condition : the KB no longer contains a resource mapping for resourceID Post-condition : the KB no longer contains a resource mapping for resourceID
 +
 REST mapping : DELETE REST mapping : DELETE
  
api4kb_persistent_storage.txt ยท Last modified: 2013/03/17 16:12 by rmbell