Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pass username and password in TeamCity REST API

I've just started to experiment with the TeamCity REST API. I've been some of the documentation about what types of commands I can call, etc, but one thing which is not mentioned is how to pass a username and password to the API.

I've not been able to find examples of this; so can someone help me out please?

like image 966
Jason Evans Avatar asked Jun 13 '12 14:06

Jason Evans


2 Answers

like this:

http://user:pass@server:port/app/rest/..... etc

I found that on the EAP Docs Site

like image 163
Preet Sangha Avatar answered Sep 18 '22 18:09

Preet Sangha


Thanks for Sangha's answer. Just one more supplement.

Please remember to encode user id and password using Base64.

like image 23
Eugene Avatar answered Sep 18 '22 18:09

Eugene