diff options
| author | Laurent Peuch <cortex@worlddomination.be> | 2021-07-21 04:57:28 +0200 |
|---|---|---|
| committer | John Villalovos <john@sodarock.com> | 2021-07-20 21:40:31 -0700 |
| commit | ef16a979031a77155907f4160e4f5e159d839737 (patch) | |
| tree | 6e5fa6613f7150c0427208bc83628b9ab0e6a4f6 /docs/gl_objects | |
| parent | d3ea203dc0e4677b7f36c0f80e6a7a0438ea6385 (diff) | |
| download | gitlab-ef16a979031a77155907f4160e4f5e159d839737.tar.gz | |
docs(project): add example on getting a single project using name with namespace
Diffstat (limited to 'docs/gl_objects')
| -rw-r--r-- | docs/gl_objects/projects.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst index 77b32ba..24af913 100644 --- a/docs/gl_objects/projects.rst +++ b/docs/gl_objects/projects.rst @@ -66,6 +66,10 @@ Get a single project:: project_id = 851 project = gl.projects.get(project_id) + # Get a project by name with namespace + project_name_with_namespace = "namespace/project_name" + project = gl.projects.get(project_name_with_namespace) + Create a project:: project = gl.projects.create({'name': 'project1'}) |
