Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linyows/mox
🎠A very simple mock server as web api.
https://github.com/linyows/mox
api-server golang json-rpc mock-server mocking restful
Last synced: 3 months ago
JSON representation
🎠A very simple mock server as web api.
- Host: GitHub
- URL: https://github.com/linyows/mox
- Owner: linyows
- License: mit
- Created: 2015-12-28T03:49:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T14:31:09.000Z (about 6 years ago)
- Last Synced: 2024-10-10T02:55:34.832Z (3 months ago)
- Topics: api-server, golang, json-rpc, mock-server, mocking, restful
- Language: Go
- Homepage:
- Size: 65.4 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Mox
===Mox is a very simple mock server as web api.
[![Travis](https://img.shields.io/travis/linyows/mox.svg?style=for-the-badge)][travis]
[![codecov](https://img.shields.io/codecov/c/github/linyows/mox.svg?style=for-the-badge)][codecov]
[![GitHub release](http://img.shields.io/github/release/linyows/mox.svg?style=for-the-badge)][release]
[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=for-the-badge)][godocs]
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)][license][travis]: https://travis-ci.org/linyows/mox
[codecov]: https://codecov.io/gh/linyows/mox
[release]: https://github.com/linyows/mox/releases
[godocs]: http://godoc.org/github.com/linyows/mox
[license]: https://github.com/linyows/mox/blob/master/LICENSEDescription
-----------It is a mock server simply returns response files.
Usage
-----```sh
$ mox --root /var/www/mox --protocol json-rpc --delay 1 --log-level debug
```use config file:
```sh
$ mox --config /etc/mox/mox.conf
```### Dockefile:
https://github.com/linyows/mox/blob/master/misc/Dockerfile
Install
-------To install, use `go get`:
```sh
$ go get -d github.com/linyows/mox
```Contribution
------------1. Fork ([https://github.com/linyows/mox/fork](https://github.com/linyows/mox/fork))
1. Create a feature branch
1. Commit your changes
1. Rebase your local changes against the master branch
1. Run test suite with the `go test ./...` command and confirm that it passes
1. Run `gofmt -s`
1. Create a new Pull RequestAuthor
------[linyows](https://github.com/linyows)