Skip to content

Commit

Permalink
Merge pull request #17 from fortify/migration_to_ssc_22.1
Browse files Browse the repository at this point in the history
Roll back to the latest released SSC API: 22.1
  • Loading branch information
akaryakina authored Jul 21, 2022
2 parents f3d41a2 + 2114405 commit 3a9dc19
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repositories {
}

group = 'com.fortify'
version = '22.2'
version = '22.1'
description 'Fortify SSC REST API client'

sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down
126 changes: 106 additions & 20 deletions src/swagger/spec.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"swagger":"2.0",
"info":{
"version":"1:22.2.0.0054",
"version":"1:22.1.2.0004",
"title":"Fortify Software Security Center API"
},
"host":"localhost:8080",
"host":"SSC:8080",
"basePath":"/ssc/api/v1",
"tags":[
{
Expand Down Expand Up @@ -19425,6 +19425,91 @@
]
}
},
"/projectVersions/{parentId}/dynamicScanRequests/action/cancel":{
"post":{
"tags":[
"dynamic-scan-request-of-project-version-controller"
],
"summary":"Cancel a dynamic scan request",
"operationId":"cancelDynamicScanRequestOfProjectVersion",
"consumes":[
"application/json"
],
"produces":[
"application/json"
],
"parameters":[
{
"name":"parentId",
"in":"path",
"description":"parentId",
"required":true,
"type":"integer",
"format":"int64"
},
{
"in":"body",
"name":"resource",
"description":"resource",
"required":true,
"schema":{
"$ref":"#/definitions/DynamicScanCancelRequest"
}
}
],
"responses":{
"200":{
"description":"OK",
"schema":{
"$ref":"#/definitions/ApiResult«Void»"
}
},
"400":{
"description":"Bad Request",
"schema":{
"$ref":"#/definitions/ApiResult"
}
},
"401":{
"description":"Unauthorized",
"schema":{
"$ref":"#/definitions/ApiResult"
}
},
"403":{
"description":"Forbidden",
"schema":{
"$ref":"#/definitions/ApiResult"
}
},
"404":{
"description":"Not Found",
"schema":{
"$ref":"#/definitions/ApiResult"
}
},
"409":{
"description":"Conflict",
"schema":{
"$ref":"#/definitions/ApiResult"
}
},
"500":{
"description":"Internal Server Error",
"schema":{
"$ref":"#/definitions/ApiResult"
}
}
},
"security":[
{
"FortifyToken":[

]
}
]
}
},
"/projectVersions/{parentId}/dynamicScanRequests/{id}":{
"get":{
"tags":[
Expand Down Expand Up @@ -37687,6 +37772,23 @@
},
"description":"Data Export DTO object"
},
"DynamicScanCancelRequest":{
"type":"object",
"required":[
"dynamicScanRequestIds"
],
"properties":{
"dynamicScanRequestIds":{
"type":"array",
"description":"List containing a single dynamic scan request id to cancel",
"items":{
"type":"integer",
"format":"int64"
}
}
},
"description":"Request for cancelling a dynamic scan request"
},
"DynamicScanRequest":{
"type":"object",
"required":[
Expand Down Expand Up @@ -39659,7 +39761,7 @@
},
"filterSet":{
"type":"string",
"description":"Application version filter set ID. If filterSet not provided, then both filterBy and issueQuery properties are ignored. If filterSet is provided, then issueInstanceIds property is ignored."
"description":"Application version filter set id. Parameter must be set only if filterBy property is set that indicates that issues search expression must be used to identify issues to be filed as bugs. If issues are identified by IDs (issueInstanceIds parameter is set), filterSet must not be set"
},
"issueInstanceIds":{
"type":"array",
Expand All @@ -39668,10 +39770,6 @@
"type":"string"
}
},
"issueQuery":{
"type":"string",
"description":"Issue search query expression to select issues for the request. If empty, bug will be filed for all visible issues in application version as per default filterset. Value is ignored if filterSet value is not set."
},
"password":{
"type":"string",
"description":"Bug tracker password. If not set, bug filing requirements LOGIN action must be called before sending this reques"
Expand Down Expand Up @@ -39902,12 +40000,6 @@
"type":"string",
"description":"Artifact name related to this job"
},
"cancelRequested":{
"type":"boolean",
"example":false,
"description":"Job cancel has been requested",
"readOnly":true
},
"cancellable":{
"type":"boolean",
"example":false,
Expand Down Expand Up @@ -43638,7 +43730,6 @@
"onDemandMode",
"permissions",
"preferences",
"priorityOverrideActive",
"roles",
"sessionId",
"userPhoto",
Expand Down Expand Up @@ -43709,11 +43800,6 @@
"description":"User preferences",
"$ref":"#/definitions/User preferences"
},
"priorityOverrideActive":{
"type":"boolean",
"example":false,
"description":"Set to true if priority override feature is active"
},
"roles":{
"type":"array",
"description":"User roles",
Expand All @@ -43732,7 +43818,7 @@
"userType":{
"type":"integer",
"format":"int32",
"description":"User Type. 0 for Local (Fortify), 2 for LDAP"
"description":"User Type integer eg. 0 for Local"
},
"username":{
"type":"string",
Expand Down

0 comments on commit 3a9dc19

Please sign in to comment.