HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: MergeRequestVersion

Location: n/a

Formats: XML, JSON

Get a merge request version by version.

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.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":"3ea34fc1f9f48cef4ac32a97621efe3e9d5c5862",
  "source_symbol":"test_branch",
  "source_symbol_type":1,
  "latest":true,
  "target_revision":"8a7d8f491f2167edc6790949cd84db1a29a4effe",
  "version":2,
  "updated_at":"2012-06-25T09:03:38Z",
  "id":2,
  "user_id":"aeF1CInHCr4ybVab_q0pIh",
  "created_at":"2012-06-25T09:03:38Z"
}

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/_id.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-version>
  <merge-request-id type="integer">1</merge-request-id>
  <source-revision>3ea34fc1f9f48cef4ac32a97621efe3e9d5c5862</source-revision>
  <source-symbol>test_branch</source-symbol>
  <source-symbol-type type="integer">1</source-symbol-type>
  <latest type="boolean">true</latest>
  <target-revision>8a7d8f491f2167edc6790949cd84db1a29a4effe</target-revision>
  <version type="integer">2</version>
  <updated-at type="datetime">2012-06-25T09:03:38Z</updated-at>
  <id type="integer">2</id>
  <user-id>aeF1CInHCr4ybVab_q0pIh</user-id>
  <created-at type="datetime">2012-06-25T09:03:38Z</created-at>
</merge-request-version>

Description for each field: merge request version object fields reference