aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo_list.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo_list.go')
-rw-r--r--models/repo_list.go29
1 files changed, 20 insertions, 9 deletions
diff --git a/models/repo_list.go b/models/repo_list.go
index b7e314e707..0c27281f17 100644
--- a/models/repo_list.go
+++ b/models/repo_list.go
@@ -84,16 +84,27 @@ func (repos MirrorRepositoryList) LoadAttributes() error {
}
// SearchRepoOptions holds the search options
+// swagger:parameters repoSearch
type SearchRepoOptions struct {
- Keyword string
- OwnerID int64
- Searcher *User //ID of the person who's seeking
- OrderBy string
- Private bool // Include private repositories in results
- Starred bool
- Page int
- IsProfile bool
- PageSize int // Can be smaller than or equal to setting.ExplorePagingNum
+ // Keyword to search
+ //
+ // in: query
+ Keyword string `json:"q"`
+ // Owner in we search search
+ //
+ // in: query
+ OwnerID int64 `json:"uid"`
+ Searcher *User `json:"-"` //ID of the person who's seeking
+ OrderBy string `json:"-"`
+ Private bool `json:"-"` // Include private repositories in results
+ Starred bool `json:"-"`
+ Page int `json:"-"`
+ IsProfile bool `json:"-"`
+ // Limit of result
+ //
+ // maximum: setting.ExplorePagingNum
+ // in: query
+ PageSize int `json:"limit"` // Can be smaller than or equal to setting.ExplorePagingNum
}
// SearchRepositoryByName takes keyword and part of repository name to search,