Projets
Voir sur GitHub
caalberts/localroast
À propos
Simule un serveur pour le développement et les tests.
Outils de développementWhat you can do
- autoload file changes
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
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
Explorer des projets similaires
Chargement…