同步检测状态
当您的安全检测服务收到AtomGit平台的检测通知后需要调用此接口将检测状态同步到AtomGit
Header Parameters
- Authorization required
私人token | app token(ats)(需以Bearer加空格开头)
- application/json
Request Body
- toolId string
检测应用id
- toolName string
检测应用名称
- toolVersion string
检测应用版本
- repositoryId string
仓库id
- scanType string
触发类型,eg:Webhook
- scanNumber string
触发编号,如webhook的id:xxxxxxxxxxxxxx
- branch string
分支名
- commitId string
commitId
Responses
- 200
- 401
- 403
操作成功
token不合法、请检查token是否正确
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- error string
错误名称
- error_description string
错误描述
{
"error": "invalid_token",
"error_description": "Invalid token, please provide correct token"
}
- Schema
- Example (from schema)
Schema
- error string
错误名称
- error_description string
错误描述
<root>
<error>invalid_token</error>
<error_description>Invalid token, please provide correct token</error_description>
</root>
权限异常
- application/json
- Schema
- Example (from schema)
Schema
- error_code string
错误名称
- error_message string
错误描述
{
"error_code": "string",
"error_message": "string"
}
Loading...