canmove, Confirmed users
1,173
edits
No edit summary |
No edit summary |
||
Line 111: | Line 111: | ||
|} | |} | ||
'''https://''server''/0.5/''username''/storage/''collection''/''id'' ''' | '''https://''server''/0.5/''username''/storage/''collection''/''id'' ''' | ||
Line 186: | Line 184: | ||
All delete requests return the timestamp of the action. | All delete requests return the timestamp of the action. | ||
= X-If-Unmodified-Since = | = General Weave Headers = | ||
== X-If-Unmodified-Since == | |||
On any write transaction (PUT, POST, DELETE), this header may be added to the request, set to a timestamp. If the collection to be acted on has been modified since the timestamp given, the request will fail. | On any write transaction (PUT, POST, DELETE), this header may be added to the request, set to a timestamp. If the collection to be acted on has been modified since the timestamp given, the request will fail. | ||
= X-Weave-Alert = | == X-Weave-Alert == | ||
This header may be sent back from any transaction, and contains potential warning messages, information, or other alerts. The contents are intended to be human-readable. | This header may be sent back from any transaction, and contains potential warning messages, information, or other alerts. The contents are intended to be human-readable. | ||
= X-Weave-Timestamp = | == X-Weave-Timestamp == | ||
This header will be sent back with all requests, indicating the current timestamp on the server. If the request was a PUT or POST, this will also be the modification date of any WBOs submitted or modified. | This header will be sent back with all requests, indicating the current timestamp on the server. If the request was a PUT or POST, this will also be the modification date of any WBOs submitted or modified. | ||
== X-Weave-Records == | |||
If supported by the db, this header will return the number of records total in the request body of any multiple-record GET request. |