Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orion-dev] One more question about Server API / File API

Hi all,

 

I have one more question about Orion File API.

Below is the example response from the wiki page  (http://wiki.eclipse.org/Orion/Server_API/File_API#Copying_a_file_or_directory).

 

Example Response

HTTP/1.1 201 Created
Location: http://example.com/file/MyProj/destination.txt
ETag: "35fd43td3"
Content-Type: application/json
 
{
"Name" : "destination.txt",
"Location" : "http://example.com/file/MyProj/destination.txt",
"ETag" : "35fd43td3",
"LocalTimeStamp" : "01234345009837",
"Directory" : "true"
"Attributes" : {
"ReadOnly" : "false",
"Executable" : "true"
}
}

 

The ETag and the Location are duplicated in the header and in the body.
Is there some reason behind ?

 

 

Thanks in advance,

Vitaly

 


Back to the top