在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:danielgtaylor/apisprout开源软件地址:https://github.com/danielgtaylor/apisprout开源编程语言:Go 98.5%开源软件介绍:A simple, quick, cross-platform API mock server that returns examples specified in an API description document. Features include:
Usage is simple: # Load from a local file
apisprout my-api.yaml
# Validate server name and use base path
apisprout --validate-server my-api.yaml
# Dynamically Include a new server / path in the validation
apisprout --add-server http://localhost:8080/mock --validate-server my-api.yaml
# Load from a URL
apisprout https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/api-with-examples.yaml Docker ImageA 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
InstallationDownload the appropriate binary from the releases page. Alternatively, you can use go get github.com/danielgtaylor/apisprout Extra FeaturesRemote ReloadIf your API spec is loaded from a remote URL, you can live-reload it by hitting the Health CheckA simple endpoint which returns status code ContributingContributions are very welcome. Please open a tracking issue or pull request and we can work to get things merged in. Release ProcessThe following describes the steps to make a new release of API Sprout.
LicenseCopyright © 2018-2019 Daniel G. Taylor |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论