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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6642d547
Commit
6642d547
authored
Aug 23, 2019
by
Tetiana Chupryna
Committed by
Achilleas Pipinellis
Aug 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dependencies api doc
parent
497ba83f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
doc/api/dependencies.md
doc/api/dependencies.md
+11
-5
No files found.
doc/api/dependencies.md
View file @
6642d547
...
@@ -5,7 +5,8 @@ This API is in an alpha stage and considered unstable.
...
@@ -5,7 +5,8 @@ This API is in an alpha stage and considered unstable.
The response payload may be subject to change or breakage
The response payload may be subject to change or breakage
across GitLab releases.
across GitLab releases.
Every call to this endpoint requires authentication. To perform this call, user should be authorized to read
Every call to this endpoint requires authentication. To perform this call, user should be authorized to read repository.
To see vulnerabilities in response, user should be authorized to read
[
Project Security Dashboard
](
../user/application_security/security_dashboard/index.md#project-security-dashboard
)
.
[
Project Security Dashboard
](
../user/application_security/security_dashboard/index.md#project-security-dashboard
)
.
## List project dependencies
## List project dependencies
...
@@ -17,8 +18,8 @@ supported by Gemnasium.
...
@@ -17,8 +18,8 @@ supported by Gemnasium.
```
```
GET /projects/:id/dependencies
GET /projects/:id/dependencies
GET /projects/:id/
vulnerabilit
ies?package_manager=maven
GET /projects/:id/
dependenc
ies?package_manager=maven
GET /projects/:id/
vulnerabilit
ies?package_manager=yarn,bundler
GET /projects/:id/
dependenc
ies?package_manager=yarn,bundler
```
```
| Attribute | Type | Required | Description |
| Attribute | Type | Required | Description |
...
@@ -38,13 +39,18 @@ Example response:
...
@@ -38,13 +39,18 @@ Example response:
"name"
:
"rails"
,
"name"
:
"rails"
,
"version"
:
"5.0.1"
,
"version"
:
"5.0.1"
,
"package_manager"
:
"bundler"
,
"package_manager"
:
"bundler"
,
"dependency_file_path"
:
"Gemfile.lock"
"dependency_file_path"
:
"Gemfile.lock"
,
"vulnerabilities"
:
[{
"name"
:
"DDoS"
,
"severity"
:
"unknown"
}]
},
},
{
{
"name"
:
"hanami"
,
"name"
:
"hanami"
,
"version"
:
"1.3.1"
,
"version"
:
"1.3.1"
,
"package_manager"
:
"bundler"
,
"package_manager"
:
"bundler"
,
"dependency_file_path"
:
"Gemfile.lock"
"dependency_file_path"
:
"Gemfile.lock"
,
"vulnerabilities"
:
[]
}
}
]
]
```
```
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