zap-api-go

module
v0.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: Apache-2.0

README

OWASP ZAP GO API

The Go implementation to access the OWASP ZAP API. For more information about OWASP ZAP consult the (main) OWASP ZAP project.

How to Obtain

The latest released version can be downloaded using:

go get github.com/zaproxy/zap-api-go

Getting Help

For help using OWASP ZAP API refer to:

Updating the Generated Files

Most of the API code is generated from the ZAP java source code.

To regenerate the API code you will need the repos zaproxy and zap-extensions checked out at the same level as this one.

You should typically generate the core API calls from the latest release tag e.g.:

cd zaproxy
git fetch upstream -t
git checkout tags/v2.11.1
git checkout tags/v2.11.1 -b goapi/2-11-1
./gradlew generateGoApiEndpoints
cd ..

The add-on APIs can be generated from the zap-extensions main branch:

cd zap-extensions
git pull upstream main
./gradle generateGoZapApiClientFiles --continue
cd ..

The above commands will update the files in zap-api-go/zap.

If any new files are created then they should be manually added to zap-api-go/zap/interface.go as per the existing files.

Directories

Path Synopsis
TODO: auto generate this file
TODO: auto generate this file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL