You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/api/v1/swagger
Bo-Yi Wu c70e442ce4
feat(api): implement branch/commit comparison API (#30349)
- Add new `Compare` struct to represent comparison between two commits
- Introduce new API endpoint `/compare/*` to get commit comparison
information
- Create new file `repo_compare.go` with the `Compare` struct definition
- Add new file `compare.go` in `routers/api/v1/repo` to handle
comparison logic
- Add new file `compare.go` in `routers/common` to define `CompareInfo`
struct
- Refactor `ParseCompareInfo` function to use `common.CompareInfo`
struct
- Update Swagger documentation to include the new API endpoint for
commit comparison
- Remove duplicate `CompareInfo` struct from
`routers/web/repo/compare.go`
- Adjust base path in Swagger template to be relative (`/api/v1`)

GitHub API
https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#compare-two-commits

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
10 months ago
..
action.go Add API for `Variables` (#29520) 11 months ago
activity.go Add activity feeds API (#23494) 2 years ago
activitypub.go Implement FSFE REUSE for golang files (#21840) 2 years ago
app.go Implement FSFE REUSE for golang files (#21840) 2 years ago
cron.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue.go Implement FSFE REUSE for golang files (#21840) 2 years ago
key.go Implement FSFE REUSE for golang files (#21840) 2 years ago
misc.go Add API for Label templates (#24602) 2 years ago
nodeinfo.go Implement FSFE REUSE for golang files (#21840) 2 years ago
notify.go Implement FSFE REUSE for golang files (#21840) 2 years ago
options.go Add API for `Variables` (#29520) 11 months ago
org.go Implement FSFE REUSE for golang files (#21840) 2 years ago
package.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go feat(api): implement branch/commit comparison API (#30349) 10 months ago
settings.go Implement FSFE REUSE for golang files (#21840) 2 years ago
user.go Fix lint-swagger warning (#29787) 11 months ago