Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
Updated docs with new archive format url
Browse files Browse the repository at this point in the history
  • Loading branch information
rfloriano committed Jul 30, 2014
1 parent 3f176a4 commit 327e533
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Get archive
Returns the compressed archive for the specified `repository` with the given `ref` (commit, tag or branch).

* Method: GET
* URI: /repository/`:name`/archive/`:ref.:format`
* URI: /repository/`:name`/archive?ref=:ref&format=:format
* Format: binary

Where:
Expand All @@ -126,9 +126,9 @@ Where:

Example URLs (http://gandalf-server omitted for clarity)::

$ curl /repository/myrepository/archive/master.zip # gets master and zip format
$ curl /repository/myrepository/archive/master.tar.gz # gets master and tar.gz format
$ curl /repository/myrepository/archive/0.1.0.zip # gets 0.1.0 tag and zip format
$ curl /repository/myrepository/archive?ref=master&format=zip # gets master and zip format
$ curl /repository/myrepository/archive?ref=master&format=tar.gz # gets master and tar.gz format
$ curl /repository/myrepository/archive?ref=0.1.0&format=zip # gets 0.1.0 tag and zip format

Get branch
-----------
Expand Down Expand Up @@ -161,8 +161,8 @@ Example result::
date: "Tue Jul 29 13:43:57 2014 -0300"
},
_links: {
zipArchive: "/repository/myrepository/branch/archive/master.zip",
tarArchive: "/repository/myrepository/branch/archive/master.tar.gz"
zipArchive: "/repository/myrepository/branch/archive?ref=master&format=zip",
tarArchive: "/repository/myrepository/branch/archive?ref=master&format=tar.gz"
}
}]

Expand Down Expand Up @@ -201,8 +201,8 @@ Example result::
date: "Tue Jul 29 13:43:57 2014 -0300"
},
_links: {
zipArchive: "/repository/myrepository/branch/archive/0.1.zip",
tarArchive: "/repository/myrepository/branch/archive/0.1.tar.gz"
zipArchive: "/repository/myrepository/branch/archive?ref=0.1&format=zip",
tarArchive: "/repository/myrepository/branch/archive?ref=0.1&format=tar.gz"
}
}]

Expand Down

0 comments on commit 327e533

Please sign in to comment.