mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Implement git refs API for listing references (branches, tags and other) (#5354)
* Inital routes to git refs api * Git refs API implementation * Update swagger * Fix copyright * Make swagger happy add basic test * Fix test * Fix test again :)
This commit is contained in:
committed by
techknowlogick
parent
294904321c
commit
08bf443016
@@ -36,6 +36,20 @@ type swaggerResponseBranchList struct {
|
||||
Body []api.Branch `json:"body"`
|
||||
}
|
||||
|
||||
// Reference
|
||||
// swagger:response Reference
|
||||
type swaggerResponseReference struct {
|
||||
// in:body
|
||||
Body api.Reference `json:"body"`
|
||||
}
|
||||
|
||||
// ReferenceList
|
||||
// swagger:response ReferenceList
|
||||
type swaggerResponseReferenceList struct {
|
||||
// in:body
|
||||
Body []api.Reference `json:"body"`
|
||||
}
|
||||
|
||||
// Hook
|
||||
// swagger:response Hook
|
||||
type swaggerResponseHook struct {
|
||||
|
Reference in New Issue
Block a user