How to pass username and password in TeamCity REST API

泪湿孤枕 提交于 2019-12-29 07:34:26

问题


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?


回答1:


like this:

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

I found that on the EAP Docs Site




回答2:


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

Please remember to encode user id and password using Base64.



来源:https://stackoverflow.com/questions/11017686/how-to-pass-username-and-password-in-teamcity-rest-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!