Skip to content

xiayuguo/har2swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

har2swagger

convert har to swagger 2.0

Usage

Install

git clone https://github.com/xiayuguo/har2swagger.git
cd har2swagger && pip install -r requirements.txt

Run

python har2swagger.py -i your-har-file.har

More

python har2swagger.py -h

Support

  • Only Python3
  • Swagger 2.0(yaml)
  • Swagger 2.0(json)
  • GET
  • POST(json body)
  • POST(application/x-www-form-urlencoded)
  • POST(multipart/form-data)
  • application/json
  • application/xml
  • openapi 3.0(yaml)
  • openapi 3.0(json)