RAML (1.0) web mock server implementation in golang
- Live reload web mock server routes from RAML file
- start mock web server
docker run \
-p 4000:4000 \
-v "${PWD}/example/organisation-api.raml:/raml/organisation-api.raml" \
tsaikd/go-raml-mocker:1.0 \
go-raml-mocker -f /raml/organisation-api.raml --port 4000
- try to get data from mock web server
curl http://localhost:4000/organisation
curl http://localhost:4000/organisation \
-XPOST \
--header "UserID: SWED-123" \
--header "Content-Type: application/json" \
-d '{"name":"Bob"}'
- See release for all available versions
curl 'https://github.com/tsaikd/go-raml-mocker/releases/download/1.0.2/go-raml-mocker-Linux-x86_64' -SLo go-raml-mocker && chmod +x go-raml-mocker
- start mock web server
go-raml-mocker -f example/organisation-api.raml --port 4000
- try to get data from mock web server
curl http://localhost:4000/organisation
go get -u -v "github.com/tsaikd/go-raml-mocker"
go-raml-mocker -h