Child pages
  • REST API Plugin
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

General Info

Vendor

JetBrains

License

Apache 2.0

Type

free, open-source

Plugin Description

Exposes TeamCity API via REST.

Icon

The plugin is in highly experimental stage. Do not use it unless you know what you are doing.
Plugin's API is continuously changing and will change A lOT. The only more or less secure way to use the plugin is to branch the sources (do not forget to change root plugin URL in Constants.API_URL_SUFFIX).

Installation

  • Install the plugin by copying rest-api.zip into .BuildServer/plugins.

Usage

If your server is accessible via http://teamcity:8111/ URL, use:
http://teamcity:8111/httpAuth/api/version - to get plugin version
http://teamcity:8111/httpAuth/api/projects - to get projects list, then follow href's
http://unit-212.labs.intellij.net:8111/httpAuth/api/buildTypes/id:bt284/builds?start=40&count=20 - (example ids are used) to get builds

As a rule, single value responses are "text/plain" and complex value responses support both "application/xml" and "application/json". Supply appropriate "Accept" header in the request to get necessary response.

Sources

TeamCity Versions Compatibility

TeamCity 5.0 latest development version.

  • No labels