package
0.0.15
Repository: https://github.com/projectdiscovery/proxify.git
Documentation: pkg.go.dev

# README

SwaggerGen

SwaggerGen can generate Swagger/OpenAPI Specification from proxify's request and response logs.

Installation

Download the latest, ready-to-run binary from under releases or install/build it using Go:

go install -v github.com/projectdiscovery/proxify/cmd/swaggergen@latest

Usage

swaggergen -help

Usage:
  ./swaggergen [flags]

Flags:
   -log-dir string           path to proxify's output log directory
   -api, -api-host string    API host (example: api.example.com)
   -os, -output-spec string  file to store Swagger/OpenAPI specification (example: OpenAPI.yaml)

Running SwaggerGen

The following command generates and saves the Swagger/OpenAPI specification in OpenAPI.yaml, from the requests and responses captured for localhost:8080 and stored in the logs directory:

swaggergen -api localhost:8080 -log-dir ./logs -os OpenAPI.yaml

# Functions

NewGenerator creates a new generator instance.

# Structs

Generator is the swagger spec generator.
No description provided by the author