go-teamcity icon indicating copy to clipboard operation
go-teamcity copied to clipboard

listing sub projects

Open V3ckt0r opened this issue 5 years ago • 3 comments

Looking at the Project struct I can't see a way of listing sub project to a project. Is there another way this can be done that I am missing? I see there is a ParentProject but no child/sub project.

V3ckt0r avatar Oct 08 '19 22:10 V3ckt0r

To provide a little more info. I'm looking for the following api GET /app/rest/projects

V3ckt0r avatar Oct 09 '19 08:10 V3ckt0r

That's right @V3ckt0r , there is no support yet for ad-hoc project querying. That would require changes to the ProjectService to accept locators.

I played a bit in local trying to come up with a generic locators implementation for several endpoints but I wasn't happy about the design so I dropped it a while ago, focusing more on other features.

However, it won't be hard to implement some locators support for projects and a GetByLocator in projects/ endpoint.

Would you please elaborate a bit more if is there any locators/filters you'd like implemented?

cvbarros avatar Nov 22 '19 22:11 cvbarros

This feature will be great. For me, it will be nice to be able to list all VcsRoots.

JaSei avatar Apr 22 '20 15:04 JaSei