Skip to content

J2S is a script to transform any payload from a curl and generate a swagger definittion comment.

Notifications You must be signed in to change notification settings

JoeLoco/json-2-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

J2S - Json to Swagger

Desription

J2S is a script to transform any payload from a curl and generate a swagger definittion comment.

How to use

node j2s.js 'curl http://dummy.restapiexample.com/api/v1/employees'

To Do

  • Load from a file
  • Export to YAML

Bugs

  • Root element must be a object (cannot be an array)
  • Empts required entries ( remove it manually )

About

J2S is a script to transform any payload from a curl and generate a swagger definittion comment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published