Fork Repository for https://github.com/danielgtaylor/apisprout Merged Pull Request #6 #7 #9
50K+
A simple, quick, cross-platform API mock server that returns examples specified in an API description document. Features include:
Accept: application/*Prefer: status=409--validate-server)--validate-request)/etc/apisprout/config.json|yaml)SPROUT_, e.g. SPROUT_VALIDATE_SERVER)Usage is simple:
# Load from a local file
apisprout my-api.yaml
# Load from a URL
apisprout https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/api-with-examples.yaml
apisprout -c my-api.yaml
A hosted API Sprout Docker image is provided that makes it easy to deploy mock servers or run locally. For example:
docker pull danielgtaylor/apisprout
docker run -p 8000:8000 danielgtaylor/apisprout http://example.com/my-api.yaml
Configuration can be passed via environment variables, e.g. setting SPROUT_VALIDATE_REQUEST=1, or by passing commandline flags. It is also possible to use a local API description file via Docker Volumes:
docker run -p 8000:8000 -v localfile.yaml:/api.yaml danielgtaylor/apisprout /api.yaml
Download the appropriate binary from the releases page.
Alternatively, you can use go get:
go get github.com/danielgtaylor/apisprout
Contributions are very welcome. Please open a tracking issue or pull request and we can work to get things merged in.
The following describes the steps to make a new release of API Sprout.
CHANGELOG.md to describe changes.git tag -a -m 'Tagging x.y.z release' vx.y.z../release.sh.Copyright © 2018 Daniel G. Taylor
Content type
Image
Digest
Size
6.5 MB
Last updated
almost 8 years ago
docker pull sakapun/apisprout