0.1.4 • Published 11 years ago

ze-goggles v0.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
11 years ago

Static api documentation generation

zego

npm install -g ze-goggles
zego -i my_doc.json -o my_doc.md

example

[
   {
      "title":"Hello",
      "description":"Say hello to Joe",
      "req":{
         "method":"post",
         "uri":"http://localhost:3001/mirror",
         "json":{
            "my":"me"
         }
      },
      "res":{
         "statusCode":200,
         "headers":{
            "content-type":"application/json",
            "content-length":"11",
            "date":"Mon, 09 Jun 2014 06:45:03 GMT",
            "connection":"keep-alive"
         },
         "body":{
            "my":"me"
         }
      }
]

result

  #Hello
  ### Say hello to the mirror
  ##### post /mirror
  ```!
  // req
  {
      "my": "me"
  }
  ```!
  ```!
  // res
  {
      "my": "me"
  }
  ```!
0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago