![]() This opens the list of user objects, including their IDs and total number. Open /app/rest/server and find the path to the users endpoint.Įnter the resulting URL in the address bar: /app/rest/users. Let's request the data about all users registered on the server: You can try requesting data via REST API right in your browser, via the address bar. ![]() app/rest/entities/.ĭELETE: removes the data at the URL, for example, for. Supported for some entities for URLs like. Accepts the same data format as retrieved via the GET request to the same URL. ![]() PUT: updates the data from the submitted payload. When posting XML, be sure to specify the Content-Type: application/xml HTTP header. To create a new entity, one regularly needs to post a single entity data (that is as retrieved via GET) to the. POST: creates the entity from the submitted payload. app/rest/entities/ retrieves a single entity. app/rest/entities usually retrieves a list of entities. ![]() You can use the super user account with REST API: just provide no username and the super user password described here. Read about other supported authentication methods in the extended quide. Curl -header "Authorization: Bearer " /app/rest/buildsīased on the provided token, TeamCity will return a payload only if the scope of the request is permitted to the user who owns this token. ![]()
0 Comments
Leave a Reply. |