Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/projects.md9
-rw-r--r--lib/api/entities.rb1
2 files changed, 7 insertions, 3 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index 40bcc6e2cd4..ffaba0af7fe 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -43,7 +43,8 @@ GET /projects
"owner_id": 1,
"path": "diaspora",
"updated_at": "2013-09-30T13: 46: 02Z"
- }
+ },
+ "archived": false
},
{
"id": 6,
@@ -78,7 +79,8 @@ GET /projects
"owner_id": 1,
"path": "brightbox",
"updated_at": "2013-09-30T13:46:02Z"
- }
+ },
+ "archived": false
}
]
```
@@ -157,7 +159,8 @@ Parameters:
"access_level": 50,
"notification_level": 3
}
- }
+ },
+ "archived": false
}
```
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index abe6fceff14..c1bd6d02c68 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -43,6 +43,7 @@ module API
class Project < Grape::Entity
expose :id, :description, :default_branch
expose :public?, as: :public
+ expose :archived?, as: :archived
expose :visibility_level, :ssh_url_to_repo, :http_url_to_repo, :web_url
expose :owner, using: Entities::UserBasic, unless: ->(project, options) { project.group }
expose :name, :name_with_namespace