Skip to main content
Question

How can you retrieve commit history of a workspace in FME Flow via the API?

  • January 12, 2024
  • 1 reply
  • 57 views

merel
Participant

With GET /repositories/< repository >/items/< item >

you can get information about items in a repository, in my case I am retrieving a workspace.

In the response there's one tag named 'history', but this is not the comment you enter when committing a workspace.

 

Sub-type: Workspace

workspace {

...

history (string, optional),

...

}

 

Can I find this history I am looking for through the API? Or at least a timestamp of when the workspace was committed?

1 reply

mattmatsafe
Safer
Forum|alt.badge.img+10

Hi @merel​, there isn't a Flow REST API to do this. FME Flow uses git for version control though, so you can install git and use standard git commands like git log to get the history outside of FME.  

gitYou could run git commands via a System Caller and pipe the results to a txt file that could be read by FME or another program. In Windows, it would look something like:

git log --name-only --oneline --pretty=fuller > C:\Data\history.txt

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings