- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 07:40 AM
I need to fetch all folders/documents inside a workspace. I was going through the REST APIs mentioned here and tried the following REST call:
http://localhost:8080/nuxeo/site/api/v1/path/default-domain/workspaces/templatesamples
But this returns only the workspace document and not its children.
Is there any REST API to get all folders/contents in a workspace or in a folder?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2015 10:05 AM
Just do a query with /api/v1/query
(see the Nuxeo API Playground) and pass a query like SELECT * FROM Document WHERE ecm:path STARTSWITH '/default-domain/workspaces/templatesamples'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2015 10:05 AM
Just do a query with /api/v1/query
(see the Nuxeo API Playground) and pass a query like SELECT * FROM Document WHERE ecm:path STARTSWITH '/default-domain/workspaces/templatesamples'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2015 05:21 AM
Use this: http://localhost:8080/nuxeo/site/api/v1/path/@children
This will return you the json of all documents under root "/". hope this will solve your problem.
