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.
forgejo/routers/api/v1/swagger
Bo-Yi Wu 8cd46024fd
refactor(API): refactor secret creation and update functionality (#26751)
According to the GitHub API Spec:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret

Merge the Create and Update secret into a single API.

- Remove the `CreateSecretOption` struct and replace it with
`CreateOrUpdateSecretOption` in `modules/structs/secret.go`
- Update the `CreateOrUpdateOrgSecret` function in
`routers/api/v1/org/action.go` to use `CreateOrUpdateSecretOption`
instead of `UpdateSecretOption`
- Remove the `CreateOrgSecret` function in
`routers/api/v1/org/action.go` and replace it with
`CreateOrUpdateOrgSecret`
- Update the Swagger documentation in
`routers/api/v1/swagger/options.go` and `templates/swagger/v1_json.tmpl`
to reflect the changes in the struct names and function names

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
10 months ago
..
action.go feat: implement organization secret creation API (#26566) 11 months ago
activity.go Add activity feeds API (#23494) 1 year 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) 1 year 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 refactor(API): refactor secret creation and update functionality (#26751) 10 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 API endpoint for changing/creating/deleting multiple files (#24887) 1 year ago
settings.go Implement FSFE REUSE for golang files (#21840) 2 years ago
user.go Implement FSFE REUSE for golang files (#21840) 2 years ago