Proyek
Lihat di GitHub
caalberts/localroast
Tentang
Mock server untuk pengembangan dan pengujian.
Alat pengembanganYang dapat Anda lakukan
- autoload file changes
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliLocalroast

Overview
Localroast quickly stubs a HTTP server. It takes a JSON file with a list of paths and stub responses. Changes are autoloaded. Use it to develop and test an API client.

Installation
From brew:
brew install caalberts/tap/localroast
From source:
go get -u github.com/caalberts/localroast
Usage
localroast examples/stubs.json
The command takes a single argument, a path to a JSON file. The JSON file must be a JSON array containing endpoint definitions. Each endpoint is represented as a JSON object with keys method, path, status and response. response can be any valid JSON object.
[
{
"method": "GET",
"path": "/",
"status": 200,
"response": {
"success": true
}
}
]
See examples/stubs.json for more.
Features
- json input
- path variable
- autoload file changes
- yml input
Jelajahi proyek terkait
Memuat…