Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chenhao Ma
core
Commits
a6f546f6
Commit
a6f546f6
authored
7 years ago
by
Justin Ehlert
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation for PUT on file endpoints
parent
bcfacc29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
swagger/responses/index.yaml
+16
-0
16 additions, 0 deletions
swagger/responses/index.yaml
swagger/templates/file-item.yaml
+15
-0
15 additions, 0 deletions
swagger/templates/file-item.yaml
with
31 additions
and
0 deletions
swagger/responses/index.yaml
+
16
−
0
View file @
a6f546f6
...
...
@@ -22,6 +22,22 @@
example
:
modified
:
1
'
200:modified-with-count-and-jobs'
:
description
:
The number of records modified and number of jobs started.
schema
:
type
:
object
properties
:
modified
:
type
:
integer
jobs_triggered
:
type
:
integer
required
:
-
modified
-
jobs_triggered
example
:
modified
:
1
jobs_triggered
:
0
'
400:invalid-body-json'
:
description
:
|
JSON did not validate against schema for this endpoint.
...
...
This diff is collapsed.
Click to expand it.
swagger/templates/file-item.yaml
+
15
−
0
View file @
a6f546f6
...
...
@@ -87,6 +87,21 @@ template: |
'200':
$ref: '#/responses/200:deleted-with-count'
put:
summary: Modify a file's attributes
operationId: modify_{{resource}}_file
tags:
- '{{tag}}'
parameters:
- name: body
in: body
required: true
schema:
$ref: schemas/input/file-update.json
responses:
'200':
$ref: '#/responses/200:modified-with-count-and-jobs'
delete:
summary: Delete a file
operationId: delete_{{resource}}_file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment