Skip to content

decafe09/swrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SWRT

SWRT is a cli tool to parse swagger.json and show routing.

Install

go get -u github.com/decafe09/swrt

Usage

swrt -f swagger/swagger.json

Help

Usage of swrt:
  --help
    	show help
  --version
    	show version
  -f string
    	import path your swagger.json (default "swagger.json")
  -h	show help
  -v	show version

Example

This example use Swagger Petstore sample

$ curl -s http://petstore.swagger.io/v2/swagger.json > swagger.json
$ swrt
http://petstore.swagger.io/v2
   PUT	/pet
  POST	/pet
   GET	/pet/findByStatus
   GET	/pet/findByTags
   GET	/pet/{petId}
  POST	/pet/{petId}
DELETE	/pet/{petId}
  POST	/pet/{petId}/uploadImage
   GET	/store/inventory
  POST	/store/order
   GET	/store/order/{orderId}
DELETE	/store/order/{orderId}
  POST	/user
  POST	/user/createWithArray
  POST	/user/createWithList
   GET	/user/login
   GET	/user/logout
   GET	/user/{username}
   PUT	/user/{username}
DELETE	/user/{username}

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages