Post

2 followers Follow
0
Avatar

accessing userApi, folderApi, etc from java class

The XLReleaseServiceHolder hasn't been updated to include the latest Apis ( folder, user, etc).  Is there another way to get access to those APIs within a Java class?

Chris Evans

Please sign in to leave a comment.

3 comments

0
Avatar

Try

XLReleaseServiceHolder.getApiServices()

This will return a list of all API endpoints. Check for the instance of com.xebialabs.xlrelease.api.v1.UserApi

Also note that the name of the endpoint can be retrieved using the serviceName() method, which is "userApi" for the UserAPI.

I hope this helps!

Hes Siemelink 0 votes
0
Avatar

This worked, thanks!  Is there an issue in the backlog to update the XLReleaseServiceHolder class to add getUserApi, getFolderApi, etc methods, or should I open a feature request?

Chris Evans 0 votes