Skip to content

getastra/zap-api-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZAP GO API

The Go implementation to access the ZAP API. For more information about ZAP consult the (main) 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 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.13.0
./gradlew generateGoApiEndpoints
cd ..

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

cd zap-extensions
git pull upstream main
./gradlew 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.

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.5%
  • Shell 0.5%