HTTP Verb: GET

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

Object: MergeRequestVersion

Location: n/a

Formats: XML, JSON

Returns a list of merge request versions.

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.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,
    "source_revision":"2d86a42007ce70b6ffd1b6a5bd1f704ba362f58a",
    "source_symbol_type":1,
    "source_symbol":"test_branch",
    "latest":false,
    "target_revision":"8a7d8f491f2167edc6790949cd84db1a29a4effe",
    "version":1,
    "updated_at":"2012-06-25T08:08:47Z",
    "id":1,
    "created_at":"2012-06-25T08:08:47Z",
    "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.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-versions type="array">
  <merge-request-version>
    <merge-request-id type="integer">1</merge-request-id>
    <source-revision>2d86a42007ce70b6ffd1b6a5bd1f704ba362f58a</source-revision>
    <source-symbol-type type="integer">1</source-symbol-type>
    <source-symbol>test_branch</source-symbol>
    <latest type="boolean">false</latest>
    <target-revision>8a7d8f491f2167edc6790949cd84db1a29a4effe</target-revision>
    <version type="integer">1</version>
    <updated-at type="datetime">2012-06-25T08:08:47Z</updated-at>
    <id type="integer">1</id>
    <created-at type="datetime">2012-06-25T08:08:47Z</created-at>
    <user-id>aeF1CInHCr4ybVab_q0pIh</user-id>
  </merge-request-version>
  ...
</merge-request-versions>

Description for each field: merge request version object fields reference