Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Server API / File API: Getting file metadata and contents

Vitaly,

Please rise a bug for this documentation/implementation mismatch. in bugzilla
You can CC Mark Macdonald or John Arthorne. They should be able to help you.

Best regards,
Maciej Bendkowski




From:        "Kozyura, Vitaly" <v.kozyura@xxxxxxx>
To:        "'Orion developer discussions'" <orion-dev@xxxxxxxxxxx>,
Date:        2013-08-20 12:57
Subject:        [orion-dev] Server API / File API: Getting file metadata and        contents
Sent by:        orion-dev-bounces@xxxxxxxxxxx




Hi all,

Below is the example response from the wiki page
 (http://wiki.eclipse.org/Orion/Server_API/File_API#Getting_file_metadata_and_contents).
In the Orion implementation
(http://download.eclipse.org/orion/) the “Content-Type: text/plain” is missing.
Instead there is some number of ‘\r’ and ‘\n’ around the contents.
 
What is the correct response?
 
Thanks in advance,
Vitaly


Example Response

HTTP/1.1 HTTP/1.1 200 OK
Content-Type: multipart/related; boundary="BOUNDARY"
ETag: "35fd43td3"
--BOUNDARY
Content-Type: application/json
 
{
"Name" : "myfile.txt",
"Location" : "http://example.com/file/MyProj/myfile.txt",
"ETag" : "35fd43td3",
"Directory" : "false",
"LocalTimeStamp" : "01234345009837",
"Charset" : "UTF-8",
"ContentType" : "text/plain",
"Attributes" : {
"ReadOnly" : "false",
"Executable" : "true"
}
}
 
--BOUNDARY
Content-Type: text/plain
 
This is the contents
 
--BOUNDARY




_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev


Back to the top