Start a Conversation

Unsolved

This post is more than 5 years old

A

3617

October 9th, 2009 14:00

Namespace Interface Qs

Do I have to URL encode the namespace endpoint in the signature?

For example,

/rest/namespace/Test%20Directory/

for a space between test and directory?

How about using other "reserved characters" like $, %, & and +.  E.g. add a folder called $Vol.

Update:

One more question related to this note in the REST API guide:

NOTE: Directly under the / directory, you can create only directories, not files.

I have been able to create a file here: /rest/namespace/FILE.DIF    Isn't that the / directory?

222 Posts

October 14th, 2009 11:00

There's an issue with special characters and spaces at the moment.

In regards to spaces, it's fixed in trunk but not deployed yet to Atmos Online.

I need to find more information on the issue with special characters like $, etc.

281 Posts

October 14th, 2009 20:00

Adam,

Yes, you can actually create files under the root (/), but it's discouraged since you can't list the contents of the root folder.

212 Posts

October 31st, 2009 15:00

Since the root (/) is not listable, how does one get the list of namespaces under '/'?

Thanks,

Aashish

29 Posts

November 4th, 2009 11:00

You cannot; you have to _know_ the name of the file/folder you wish to open under '/'

212 Posts

November 6th, 2009 14:00

I was able to list namespaces under '/' by using EsuApi.listDirectories(new ObjectPath("/")).

The issue turned out to be something else - /;

Thanks,

Aashish

No Events found!

Top