Commit 433a030b authored by Chandan Pasunoori's avatar Chandan Pasunoori Committed by Sander van Harmelen

added _links property support in projects api (#246)

* added _links property support in projects api

* support for _links in project api, godoc for Links struct
parent 12ad4432
......@@ -84,6 +84,7 @@ type Project struct {
GroupAccessLevel int `json:"group_access_level"`
} `json:"shared_with_groups"`
Statistics *ProjectStatistics `json:"statistics"`
Links *Links `json:"_links,omitempty"`
}
// Repository represents a repository.
......@@ -158,6 +159,17 @@ type ForkParent struct {
WebURL string `json:"web_url"`
}
// Links represents a project web liks for self, issues, merge_requests, repo_branches, labels, events, members.
type Links struct {
Self string `json:"self"`
Issues string `json:"issues"`
MergeRequests string `json:"merge_requests"`
RepoBranches string `json:"repo_branches"`
Labels string `json:"labels"`
Events string `json:"events"`
Members string `json:"members"`
}
func (s Project) String() string {
return Stringify(s)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment