Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
e0fdb426
Commit
e0fdb426
authored
10 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6823 from milgner/api_expose_project_archived_status
Expose archive status of projects in API
parents
6d65afb3
61e68634
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
doc/api/projects.md
doc/api/projects.md
+6
-3
lib/api/entities.rb
lib/api/entities.rb
+1
-0
No files found.
doc/api/projects.md
View file @
e0fdb426
...
...
@@ -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
}
```
...
...
This diff is collapsed.
Click to expand it.
lib/api/entities.rb
View file @
e0fdb426
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment