Skip to main content
Solved

Get all items in all repositories using REST API?

  • October 19, 2020
  • 2 replies
  • 152 views

aaron
Contributor
Forum|alt.badge.img+12
  • Contributor
  • 73 replies

Is it possible to get all the items in all repositories with a single URL using the FME Server REST API? I understand how to get a list of repositories or the items in a single repository but not all items at once. The only option I can think of is to get the repositories and then loop through them one at a time to get the items. Hoping I'm missing a simpler solution.

 

Aaron

Best answer by hollyatsafe

H @aaron​ ,

There is no endpoint to fetch a list of all workspace items in Rest API V3. First retrieving a list of repositories and then fetching the items per repository is the recommended method to get the information you are after.

 

Our team are currently working on Rest API V4 and there is an enhancement request (FMESERVER-15349) to expose a call that returns all workspaces. I've linked this community post to the ticket and will update you should this be implemented in the new version.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img+2
  • 719 replies
  • Best Answer
  • October 19, 2020

H @aaron​ ,

There is no endpoint to fetch a list of all workspace items in Rest API V3. First retrieving a list of repositories and then fetching the items per repository is the recommended method to get the information you are after.

 

Our team are currently working on Rest API V4 and there is an enhancement request (FMESERVER-15349) to expose a call that returns all workspaces. I've linked this community post to the ticket and will update you should this be implemented in the new version.


aaron
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • 73 replies
  • October 20, 2020

Thanks for the confirmation, Holly. I went ahead and retrieved the list of repositories and then the items for each repository. That works fine.