diff options
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 ------ |