Projetos
Ver no GitHub
caalberts/localroast
Sobre
Simula um servidor para desenvolvimento e testes.
Ferramentas de desenvolvimentoO que você pode fazer
- autoload file changes
Crescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalLocalroast

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
Explore projetos relacionados
Carregando…