11{
22 "info" : {
3- "_postman_id" : " c743a345-73eb-4eca-b4dd-46ca1ee972f5 " ,
3+ "_postman_id" : " 5063f89b-8127-49b9-a6e6-fd83a4ed89e5 " ,
44 "name" : " Veracode Example" ,
55 "description" : " This is an example suite of API calls for the Veracode REST APIs" ,
6- "schema" : " https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+ "schema" : " https://schema.getpostman.com/json/collection/v2.1.0/collection.json" ,
7+ "_exporter_id" : " 13366636" ,
8+ "_collection_link" : " https://veracodeapis.postman.co/workspace/Veracode-Postman-Collection~4530d0e1-2101-4dab-9f8b-3631af50ff77/collection/13366636-5063f89b-8127-49b9-a6e6-fd83a4ed89e5?action=share&creator=13366636&source=collection_link"
79 },
810 "item" : [
911 {
149151 "request" : {
150152 "method" : " GET" ,
151153 "url" : {
152- "raw" : " {{base_url}}/appsec/v1/applications?name=verademo " ,
154+ "raw" : " {{base_url}}/appsec/v1/applications" ,
153155 "host" : [
154156 " {{base_url}}"
155157 ],
156158 "path" : [
157159 " appsec" ,
158160 " v1" ,
159161 " applications"
162+ ]
163+ },
164+ "description" : " GET Applications no parameters"
165+ },
166+ "response" : []
167+ },
168+ {
169+ "name" : " All Static Findings" ,
170+ "event" : [
171+ {
172+ "listen" : " prerequest" ,
173+ "script" : {
174+ "exec" : [
175+ " const app_guid = pm.collectionVariables.get('app_guid');" ,
176+ " if (!app_guid) {" ,
177+ " throw new Error(\" Environment does not have an 'app_guid'. Please ensure you have configured an app_guid in the Collection Variables.\" );" ,
178+ " }"
179+ ],
180+ "type" : " text/javascript"
181+ }
182+ }
183+ ],
184+ "request" : {
185+ "method" : " GET" ,
186+ "header" : [
187+ {
188+ "key" : " Authorization" ,
189+ "value" : " {{hmacAuthHeader}}" ,
190+ "type" : " text"
191+ }
192+ ],
193+ "url" : {
194+ "raw" : " {{base_url}}/appsec/v2/applications/{{app_guid}}/findings?scan_type=STATIC" ,
195+ "host" : [
196+ " {{base_url}}"
197+ ],
198+ "path" : [
199+ " appsec" ,
200+ " v2" ,
201+ " applications" ,
202+ " {{app_guid}}" ,
203+ " findings"
160204 ],
161205 "query" : [
162206 {
163- "key" : " name " ,
164- "value" : " verademo "
207+ "key" : " scan_type " ,
208+ "value" : " STATIC "
165209 }
166210 ]
167- },
168- "description" : " GET Applications no parameters"
211+ }
212+ },
213+ "response" : []
214+ },
215+ {
216+ "name" : " All SCA Findings" ,
217+ "event" : [
218+ {
219+ "listen" : " prerequest" ,
220+ "script" : {
221+ "exec" : [
222+ " const app_guid = pm.collectionVariables.get('app_guid');" ,
223+ " if (!app_guid) {" ,
224+ " throw new Error(\" Environment does not have an 'app_guid'. Please ensure you have configured an app_guid in the Collection Variables.\" );" ,
225+ " }"
226+ ],
227+ "type" : " text/javascript"
228+ }
229+ }
230+ ],
231+ "request" : {
232+ "method" : " GET" ,
233+ "header" : [
234+ {
235+ "key" : " Authorization" ,
236+ "value" : " {{hmacAuthHeader}}" ,
237+ "type" : " text"
238+ }
239+ ],
240+ "url" : {
241+ "raw" : " {{base_url}}/appsec/v2/applications/{{app_guid}}/findings?scan_type=SCA" ,
242+ "host" : [
243+ " {{base_url}}"
244+ ],
245+ "path" : [
246+ " appsec" ,
247+ " v2" ,
248+ " applications" ,
249+ " {{app_guid}}" ,
250+ " findings"
251+ ],
252+ "query" : [
253+ {
254+ "key" : " scan_type" ,
255+ "value" : " SCA"
256+ }
257+ ]
258+ }
169259 },
170260 "response" : []
171261 }
190280 " " ,
191281 " var url = require('url');" ,
192282 " " ,
283+ " /* set Veracode API credentials in api_id and api_key in environment*/" ,
193284 " const id = pm.environment.get('api_id');" ,
194285 " if (!id) {" ,
195286 " throw new Error(\" Environment does not have an 'api_id'. Please ensure you have configured a Veracode environment.\" );" ,
273364 {
274365 "key" : " findings_base_url" ,
275366 "value" : " https://api.veracode.com/appsec/v1"
367+ },
368+ {
369+ "key" : " app_guid" ,
370+ "value" : " " ,
371+ "type" : " string"
276372 }
277373 ]
278- }
374+ }
0 commit comments