Add new API 'ServerVersion'
This commit is contained in:
parent
577184279b
commit
ec03aeb834
1 changed files with 9 additions and 0 deletions
|
@ -11,3 +11,12 @@ type MarkdownOption struct {
|
|||
Context string
|
||||
Wiki bool
|
||||
}
|
||||
|
||||
type ServerVersion struct {
|
||||
Version string
|
||||
}
|
||||
|
||||
func (c *Client) ServerVersion() (string, error) {
|
||||
v := ServerVersion{}
|
||||
return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue