-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: fixed auth headers and query params
chore: added generated output examples
- Loading branch information
1 parent
5b7da35
commit d9bd10e
Showing
7 changed files
with
1,271 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package github | ||
|
||
type GithubApi struct { | ||
GetUser func() (*UserInfo, error) `method:"GET" path:"/user" auth:"bearer"` | ||
GetRepositories func() ([]Repository, error) `method:"GET" path:"/user/repos"` | ||
GetCommits func(owner string, repo string, since string) ([]Commit, error) `method:"GET" path:"/repos/{owner}/{repo}/commits" query:"since"` | ||
GetIssues func(owner, repo string) ([]Issue, error) `method:"GET" path:"/repos/{owner}/{repo}/issues"` | ||
GetLanguages func(owner, repo string) (*Language, error) `method:"GET" path:"/repos/{owner}/{repo}/languages"` | ||
GetTraffic func(owner, repo string) (*Traffic, error) `method:"GET" path:"/repos/{repo}/{owner}/traffic/views"` | ||
GetStargazers func(owner, repo string) ([]Stargazer, error) `method:"GET" path:"/repos/{repo}/stargazers"` | ||
GetForks func(owner, repo string) ([]Fork, error) `method:"GET" path:"/repos/{owner}/{repo}/forks"` | ||
} |
Oops, something went wrong.