azure-devops-python-api icon indicating copy to clipboard operation
azure-devops-python-api copied to clipboard

Request to add Service Endpoint

Open brichins opened this issue 8 years ago • 4 comments

I'd like to see the Service Endpoint REST API added to this library (https://docs.microsoft.com/en-us/rest/api/vsts/serviceendpoint/endpoints?view=vsts-rest-4.1). It would help when programmatically creating endpoints.

Could you also explain how the APIs are generated? I'm guessing they're autogenerated from OpenAPI/Swagger definitions. I didn't find anything in the scripts directory that shows how to generate the code. Any pointers there would be helpful.

Thanks,

Brandon Richins

brichins avatar Jun 12 '18 20:06 brichins

@brichins The clients are generated using an internal tool available only in the product build system. It uses reflection on the binaries to find information on our controllers, models and routes. We use this tool to generate c#, typescript, node.js, swagger 2.0, java, and python clients. The documentation you found for the REST end points is then generated from the swagger 2.0.

tedchamb avatar Jun 13 '18 14:06 tedchamb

Thanks for your response describing the process. As far as adding the VSTS Service Endpoint REST API to the python-api, are you accepting that as a feature request?

brichins avatar Jun 13 '18 16:06 brichins

@brichins Yes, see following pull request: #82

tedchamb avatar Jun 13 '18 17:06 tedchamb

https://github.com/Microsoft/vsts-python-api/releases/tag/0.1.9

tedchamb avatar Jun 13 '18 18:06 tedchamb