uwolfer / gerrit-rest-java-client

Java REST client for Gerrit Code Review
Apache License 2.0
164 stars 88 forks source link

how to use BranchApiRestClient #230

Closed tianweipeng closed 7 months ago

uwolfer commented 7 months ago

@tianweipeng What would you like to know exactly? Do you have a code sample which does not work as expected?

tianweipeng commented 7 months ago

@tianweipeng What would you like to know exactly? Do you have a code sample which does not work as expected?

I copied the demon code, but branch element returns null when I used gerritApi.projects().list().get() or gerritApi.projects().list().getBranch()

tianweipeng commented 7 months ago

@uwolfer I mean how to get all branches and branchinfo

uwolfer commented 7 months ago

@tianweipeng Do other API calls work against the same Gerrit server?

tianweipeng commented 7 months ago

@tianweipeng Do other API calls work against the same Gerrit server?

@uwolfer No, this function "GET /projects/testproject/tags?m=v2 HTTP/1.0" didn't been implemented.

uwolfer commented 7 months ago

@tianweipeng Can you please try to call the Gerrit REST API via curl or something like that? It sounds to me like the REST API is not available under the path requested.

tianweipeng commented 7 months ago

That REST API is available.