Skip to content

zapbot/zap-api-docs

 
 

Repository files navigation

Build Status

Introduction

Welcome to ZAP API Documentation! The OWASP Zed Attack Proxy (ZAP) is one of the world's most popular free security tools which lets you automatically find security vulnerabilities in your applications. ZAP also has an extremely powerful API that allows you to do nearly everything that possible via the desktop interface. This allows the developers to automate pentesting and security regression testing of the application in the CI/CD pipeline. This repository provides example guides & API definitions for ZAP APIs.

The live documentation can be viewed in the following URL.

Contributing to the Documentation

The guidelines for contribution is available in the following page. ZAP documentation is built using Slate. The source files for the documentation are available in the source/includes directory. View the contribution guide on how to start contributing to the document.

Deploying

To deploy to https://zaproxy.org/

  1. Run bundle install if you have not done so before
  2. Run bundle exec middleman build --clean
  3. Copy the build directory to your own clone of https://github.com/zaproxy/zaproxy.github.io e.g.
    • cp -R build/* ../zaproxy.github.io/docs/api/
  4. Commit and push any changes then open a PR on https://github.com/zaproxy/zaproxy.github.io

Generate OpenAPI Markdown

The OpenAPI markdown is auto generated from the openapi.yaml file and the Widdershins node package is used to auto generate the markdown file.

# To install the widdershins package
npm i -g widdershins
# To generate the markdown file
widdershins --search false --language_tabs 'shell:Shell' 'java:Java' 'python:Python' --summary openapi.yaml source/includes/apis.md

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.9%
  • CSS 9.7%
  • Ruby 1.9%
  • Shell 1.5%
  • HTML 1.0%