swagger-hub

Stars
1

swagger-hub

swagger-uiswagger

// golang
go get -u github.com/voidint/swagger-hub/...

// 
ln -s $GOPATH/bin/doc-server /usr/local/bin/doc-server

$ doc-server -h
Usage of doc-server:
  -dir string
    	
  -domain string
    	HTTP (default "apihub.idcos.net")
  -log string
    	() (default "doc-server.log")
  -port uint
    	 (default 80)

  • dir: web
  • domain: HTTP`localhost``IP```
  • log: ()
  • port:

  1. swagger specification
  2. YAML``JSON``dir``web``api
  3. doc-server --dir $GOPATH/src/github.com/voidint/swagger-hub/web --domain localhost --log /tmp/doc-server.log --port 8090
  4. http://localhost:8090

TODO

  • api
  • api()HTML
  • apiHTML
  • golang``template``strings.Replace()html
  • version