diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-08-09 16:37:45 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-08-09 16:37:45 +0200 |
commit | f00340f72935b6fd80df7b62b811644b63049b5a (patch) | |
tree | 5cb0428f95121d237534af7f76bb600436db94d2 /docs/gl_objects/projects.rst | |
parent | 71a2a4fb84321e73418fda1ce4e4d47177af928c (diff) | |
download | gitlab-f00340f72935b6fd80df7b62b811644b63049b5a.tar.gz |
docs: repository files API
Diffstat (limited to 'docs/gl_objects/projects.rst')
-rw-r--r-- | docs/gl_objects/projects.rst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst index ee55e74..bc1b24f 100644 --- a/docs/gl_objects/projects.rst +++ b/docs/gl_objects/projects.rst @@ -139,6 +139,36 @@ Get a list of contributors for the repository: :start-after: # repository contributors :end-before: # end repository contributors +Files +----- + +The following examples show how you can manipulate the project files. + +Get a file: + +.. literalinclude:: projects.py + :start-after: # files get + :end-before: # end files get + +Create a new file: + +.. literalinclude:: projects.py + :start-after: # files create + :end-before: # end files create + +Update a file. The entire content must be uploaded, as plain text or as base64 +encoded text: + +.. literalinclude:: projects.py + :start-after: # files update + :end-before: # end files update + +Delete a file: + +.. literalinclude:: projects.py + :start-after: # files delete + :end-before: # end files delete + Events ------ |