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
c96d40aa
Commit
c96d40aa
authored
Dec 21, 2019
by
raju249
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add api for sentry error tracking settings
parent
f4517f3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
lib/api/api.rb
lib/api/api.rb
+1
-0
lib/api/error_tracking.rb
lib/api/error_tracking.rb
+24
-0
No files found.
lib/api/api.rb
View file @
c96d40aa
...
...
@@ -117,6 +117,7 @@ module API
mount
::
API
::
DeployKeys
mount
::
API
::
Deployments
mount
::
API
::
Environments
mount
::
API
::
ErrorTracking
mount
::
API
::
Events
mount
::
API
::
Features
mount
::
API
::
Files
...
...
lib/api/error_tracking.rb
0 → 100644
View file @
c96d40aa
# frozen_string_literal: true
module
API
class
ErrorTracking
<
Grape
::
API
before
{
authenticate!
}
params
do
requires
:id
,
type:
String
,
desc:
'The ID of a project'
end
resource
:projects
,
requirements:
API
::
NAMESPACE_OR_PROJECT_REQUIREMENTS
do
desc
'Get sentry error tracking settings for the project'
do
success
Entities
::
SentryProjectErrorTrackingSettings
end
get
':id/error_tracking/sentry_project_settings'
do
authorize!
:read_sentry_issue
,
user_project
sentry_project_settings
=
user_project
.
error_tracking_setting
present
sentry_project_settings
,
with:
Entities
::
SentryProjectErrorTrackingSettings
end
end
end
end
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