Nuxeo API documentation problem with encoding character

Hi,

On http://demo.nuxeo.com/nuxeo/api/v1/doc

Specially : http://demo.nuxeo.com/nuxeo/api/v1/doc#!/path/getDocumentByPath_get_0

We can't to make a request after “workspaces” level because of encoding url.

Example

GET by Path with docPath : default-domain/workspaces

generated request is good : http://demo.nuxeo.com:80/nuxeo/site/api/v1/path/default-domain/workspaces

Response 200 OK


But for GET by Path with docPath : default-domain/workspaces/Finance

generated request is http://demo.nuxeo.com:80/nuxeo/site/api/v1/path/default-domain/workspaces%2FFinance See the “%2F” instead slash !

Response is 404 because of urlencoded slash

Can you fix this or tell me a workaround, because it's a great tool but not very usefull with this bug.

0 votes

0 answers

1045 views

ANSWER

Why do you urlencode the slash? It should work with a normal slash.
02/10/2014

It's not me ! when i click on "Try it out!" i see with firebug the post with this slash urencoded !
02/10/2014

Hello, I think you didn't understand the problem.

Try this :

  1. Connect to : http://demo.nuxeo.com/nuxeo/api/v1/doc
  2. (Login…)
  3. Choose by PATH and GET Method (get /path/{docPath})
  4. Type : default-domain/workspaces/Finance
  5. Click TRY IT OUT

You get an error, it's not normal ! you should obtain the document

I created a bug for this.

02/14/2014

Thanks for the feedback,

adding the link to the issue: https://jira.nuxeo.com/browse/NXP-13776

02/17/2014