APIs specifications in one place with ReDoc.
go get github.com/holive/doc
cd $GOPATH/src/github.com/holive/doc/app/cmd
go run main.go
There is also a Docker image:
docker run -e MONGO_CONNECTION_STRING="your-connection-string" -p 3000:3000 hbliveira/doc
You need a squad key to be able to create or delete a doc. So get your squad key:
curl -X POST --data '{"name": "<your-squad-name>"}' http://localhost:3000/squad
Endpoint: POST http://localhost:3000/{project}/{version}
curl -F '[email protected]' -F 'squad=<your-squad-name>' -F "descricao=<optional-description>" http://localhost:3000/{project}/{version} -H 'X-Squad-Key: <your-squad-key>'
Endpoint: DELETE http://localhost:3000/{project}/{version}
curl -X DELETE http://localhost:3000/{project}/{version} -F 'squad=<your-squad-name>' -H 'X-Squad-Key: <your-squad-key>'
Endpoint: GET http://localhost:3000/{project}/{version}
Endpoint: GET http://localhost:3000