Skip to content

Commit 812e026

Browse files
authored
Merge pull request #492 from thc202/af-plans/api-example-jobs
Expand import job examples in the API AF plan
2 parents a2cad3b + 3f17b22 commit 812e026

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

other/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to the 'other' section of this repository will be documented
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
### 2025-10-03
7-
- Added af-plans/FullScanCrApiAuth.yaml
7+
- Added af-plans/FullScanCrApiAuth.yaml and more import job examples to af-plans/ApiScanExample.yaml
88
- Changed auth AF plans to use seconds instead of requests for pollUnits.
99

1010
### 2025-09-30

other/af-plans/ApiScanExample.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,47 @@ jobs:
248248
wsdlFile: # String: Local file path of the WSDL, default: null, no definition will be imported
249249
wsdlUrl: # String: URL pointing to the WSDL, default: null, no definition will be imported
250250

251+
# Example usages:
252+
- type: "postman"
253+
parameters:
254+
collectionFile: postman.json # The target is defined in the collection.
255+
256+
- type: "postman"
257+
parameters:
258+
collectionUrl: "https://api.example.com/postman.json" # The target is defined in the collection.
259+
260+
- type: "graphql"
261+
parameters:
262+
endpoint: "https://www.example.com/api/"
263+
schemaFile: file.graphql
264+
265+
- type: "graphql"
266+
parameters:
267+
endpoint: "https://www.example.com/api/"
268+
schemaUrl: "https://www.example.com/api/file.graphql" # If no schemaFile nor schemaUrl is provided, introspection is done on the endpoint.
269+
270+
- type: "openapi"
271+
parameters:
272+
apiFile: openapi.json # Assumes the definition has the target URL.
273+
274+
- type: "openapi"
275+
parameters:
276+
apiUrl: "https://api.example.com/openapi.json" # Imports from URL, if the definition does not have the target it will use the domain of the import URL.
277+
278+
- type: "openapi"
279+
parameters:
280+
apiFile: openapi.json
281+
targetUrl: "https://api.example.com/" # The definition does not have the target, we provide it in the job instead.
282+
283+
- type: "soap"
284+
parameters:
285+
wsdlFile: file.wsdl # The WSDL needs to specify the target locations.
286+
287+
- type: "soap"
288+
parameters:
289+
wsdlUrl: "https://api.example.com/file.wsdl" # The WSDL needs to specify the target locations.
290+
291+
251292
- parameters:
252293
policyDefinition:
253294
defaultStrength: "medium"

0 commit comments

Comments
 (0)