mimic

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2014 License: MIT Imports: 8 Imported by: 0

README

mimic

simple http mock server.

Example

config.sample.json is here.

$ mimic --config=config.sample.json
2014/08/29 15:15:38 registered: GET /
2014/08/29 15:15:38 registered: POST /api/message
2014/08/29 15:15:38 registered: GET /api/message
2014/08/29 15:15:38 mimic server started at localhost:3390
$ curl -X POST http://localhost:3390/api/message
{"status":"ok"}%                                                                                                                                                                                                               -- 2014/08/29 15:16:30 --

$ curl -X GET http://localhost:3390/api/message
{"message":"Hi, I'm mimic!!"}%                                                                                                                                                                                                 -- 2014/08/29 15:16:35 --

$ curl -X GET http://localhost:3390/hoge
404 page not found

Licence

MIT

Author

handlename

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL