forked from gogs/go-gogs-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Repositories Contents
Unknwon edited this page Dec 3, 2015
·
1 revision
This method returns the raw content of a file.
GET /repos/:username/:reponame/raw/:ref/:path
Name | Type | Description |
---|---|---|
ref | string | Required The name of the commit/branch/tag |
path | string | Required The content path |
Status: 200 OK
Content-Type: text/plain
## Getting Started
To install Macaron:
go get github.com/Unknwon/macaron
The very basic usage of Macaron:
```go
package main
import "github.com/Unknwon/macaron"
func main() {
m := macaron.Classic()
m.Get("/", func() string {
return "Hello world!"
})
m.Run()
}
```
This method returns archive by given format.
GET /repos/:username/:reponame/archive/:ref:format
Name | Type | Description |
---|---|---|
ref | string | Required The name of the commit/branch/tag |
format | string | Required The format of archive, either .zip or .tar.gz |
Status: 200 OK
Content-Type: application/octet-stream