Content-Length: 249859 | pFad | http://github.com/projectdiscovery/proxify/tree/main/cmd/swaggergen

FE proxify/cmd/swaggergen at main · projectdiscovery/proxify · GitHub
Skip to content

Latest commit

 

History

History

swaggergen

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/projectdiscovery/proxify/tree/main/cmd/swaggergen

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy