diff options
author | Denys Konovalov <kontakt@denyskon.de> | 2023-06-07 17:49:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 23:49:58 +0800 |
commit | eac1bddb8da2e26a3f6d6678b9888c65418cf318 (patch) | |
tree | 7e004c97853bc03c780cdf511ff58ec58498d690 /routers | |
parent | 027014d7de19a566cde306c868a31895903d00d5 (diff) | |
download | gitea-eac1bddb8da2e26a3f6d6678b9888c65418cf318.tar.gz gitea-eac1bddb8da2e26a3f6d6678b9888c65418cf318.zip |
fix swagger documentation for multiple files API endpoint (#25110)v1.20.0-rc0
Fixes some issues with the swagger documentation for the new multiple
files API endpoint (#24887) which were overlooked when submitting the
original PR:
1. add some missing parameter descriptions
2. set correct `required` option for required parameters
3. change endpoint description to match it full functionality (every
kind of file modification is supported, not just creating and updating)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/file.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go index ae0d31c2a6..e25def6df2 100644 --- a/routers/api/v1/repo/file.go +++ b/routers/api/v1/repo/file.go @@ -408,11 +408,11 @@ func canReadFiles(r *context.Repository) bool { return r.Permission.CanRead(unit.TypeCode) } -// ChangeFiles handles API call for creating or updating multiple files +// ChangeFiles handles API call for modifying multiple files func ChangeFiles(ctx *context.APIContext) { // swagger:operation POST /repos/{owner}/{repo}/contents repository repoChangeFiles // --- - // summary: Create or update multiple files in a repository + // summary: Modify multiple files in a repository // consumes: // - application/json // produces: |