Hi,
I am trying to test my APIS using the openapi json file and using python client for that.
Steps :
1. pulled the zap weekly docker image
2. Using the zap-api-scan.py running the below command.
docker run -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-weekly zap-api-scan.py -t https://<my url for the json file of the APIs> -O <HostName to override> -f openapi -D 20 -r TestReport.html -d
My Requirements:
1. I need to create a api authorization key before sending every http request as the expiry of the api token is 40 secs.
2. Need to create a hash of the request body for post requests.
3.To create the token I need the Request Path,Hash of request body and add the token and hash to the header of every request.
Can you please let me know the steps to create an HTTP sender script for this and how I can enable from the zap-api-scan.py. It would be great if you can let me know how to write a script for that.