TeamCity REST API for retrieving Build Configuration details Follow
Hello,
I trying to understand different behavior of REST API when retrieving build configuration by ID
When using the same URL from Chrome, I receive all the details, including Snapshot Dependencies, Artifact Dependencies and many more.
When accessing the same URL from C# or PostMan chrome extension, I get only basic information.
Actually I need a single API to retrieve all the details of specific build configuration.
Here is the URL I use:
http://tc/guestAuth/app/rest/buildTypes/id:Trunk_Green_NightlyCi_WebTests_WebTestsTemplateAddRemoveRouteInEnvironmentTest_2
See detailed screenshots.
Attachment(s):
RestApiFromPostmanXml.jpg
RestApiFromPostman.jpg
RestApiFromCsharpFiddlerJsonl.jpg
RestApiFromChrome.jpg
Please sign in to leave a comment.
I think, I understood the difference: authenticated requests return full details, while requests sent by guest return only basic details.
Hi Boris,
Using Guest user for REST API requests you'll get only details the guest has permissions for. You can configure guest user permissions on Administration > Users > Guest user settings page if needed.
Thanks, Alina