Authentication
The following tables show the authentication-related parameters supported for the StarTeam REST API.
Log in parameters
The following table lists the log in parameters:
Type |
Description |
---|---|
Logon |
Logs in
to the server. URL: |
Method | POST |
URL params |
None |
Data Params |
Bearer ( if SSO or MFA is enabled on the server). |
Body | Basic authorization should be set in the body of the request. |
Success Response |
Returns a cookie containing:
For example:
|
Error Response |
Returns error content. For example, for the
|
Sample Call |
Stores the session id in a file called cookie.txt.
|
Log out parameters
The following table lists the log out parameters:
Type | Description |
---|---|
Logout |
Logs out of the server. URL: |
Method | GET |
URL params | None |
Data params | Session cookie |
Success response | None |
Error response |
For example, for code {"StarTeam Server":"17.2.0.138","StarTeam Server REST API":"2.0","configname":"test","serverguid":"9b63b031-216b-4437-be4e-01d2a40bd4f9"}
|
Sample Call | curl --cookie-jar cookie.txt -X GET http://127.0.0.1:49206/serverapi/logout
|
See also: