Can I get serialized output for any object in swift.

asked 2014-08-19 22:38:24 -0500

vishal gravatar image

updated 2014-08-22 16:38:49 -0500

smaffulli gravatar image

In Swift we can serialized the output of any container for example-

 curl –X GET -i -H "X-Auth-Token: fc81aaa6-98a1-9ab0-94ba-aba9a89aa9ae" https://storage.swiftdrive.com/v1/Container?format=xml

Here we can get XML format for container. But how can i get XML format for any object. If any file "file.txt" does not exist in the container in that case swift should return XML forn object also
If i performed below query for example-

 curl –X GET -i -H "X-Auth-Token: fc81aaa6-98a1-9ab0-94ba-aba9a89aa9ae" https://storage.swiftdrive.com/v1/Container/file.txt?format=xml

In this case file.txt does not exist in the Container but swift should return an XML format for above query.

edit retag flag offensive close merge delete