HTTP Verb: GET

Available statuses: 200 OK, 204 No Content, 404 Not Found

Object: MergeRequestVote

Location: n/a

Formats: XML, JSON

Returns a list of merge request version votes.

Params

No params available

Examples

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/space_tools/_space_tool_id/merge_requests/_merge_request_id/versions/_version/votes.json

Response

HTTP/1.1 200 OK
Server: nginx/0.7.68
Date: Tue, 24 Jul 2012 13:03:50 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

[
  {
    "merge_request_id":1,
    "merge_request_version_id":2,
    "updated_at":"2012-08-08T13:51:12Z",
    "id":4,
    "created_at":"2012-08-08T13:51:12Z",
    "vote":1,
    "user_id":"aeF1CInHCr4ybVab_q0pIh"
  },
  ...
]

JSON is formatted here for readability, in a real response JSON body is inline with no indentation.

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/space_tools/_space_tool_id/merge_requests/_merge_request_id/versions/_version/votes.xml

Response

HTTP/1.1 200 OK
Server: nginx/0.7.68
Date: Tue, 24 Jul 2012 13:21:38 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<merge-request-votes type="array">
  <merge-request-vote>
    <merge-request-id type="integer">1</merge-request-id>
    <merge-request-version-id type="integer">2</merge-request-version-id>
    <updated-at type="datetime">2012-08-08T13:51:12Z</updated-at>
    <id type="integer">4</id>
    <created-at type="datetime">2012-08-08T13:51:12Z</created-at>
    <vote type="integer">1</vote>
    <user-id>aeF1CInHCr4ybVab_q0pIh</user-id>
  </merge-request-vote>
</merge-request-votes>

Description for each field: Merge Request Vote object fields reference