Skip to content

Commit

Permalink
Merge pull request #143 from snyk/feat/add-code-insights-support
Browse files Browse the repository at this point in the history
feat: add code insights paths
  • Loading branch information
mikomraz authored Oct 30, 2018
2 parents a262c32 + fad960f commit d8fc0be
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,50 @@
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
}
},
{
"//": "used to create a Code Insights report",
"method": "PUT",
"path": "/rest/insights/1.0/projects/:project/repos/:repo/commits/:sha/reports/:report",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to remove a Code Insights report",
"method": "DELETE",
"path": "/rest/insights/1.0/projects/:project/repos/:repo/commits/:sha/reports/:report",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to add Code Insights annotations to a report",
"method": "POST",
"path": "/rest/insights/1.0/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to remove Code Insights annotations for a report",
"method": "DELETE",
"path": "/rest/insights/1.0/projects/:project/repos/:repo/commits/:sha/reports/:report/annotations",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
}
]
}

0 comments on commit d8fc0be

Please sign in to comment.