mocmock
Create Project
$ mocmock new my-project
Add Endpoints
- Edit config/routes.yml
routes:
+ users:
+ - get
+ - post
- Run load command
$ mocmock load
Now created new json files for /users
- Edit these json files
$ tree jsons
jsons
└── users
├── get.json
└── patch.json
Run MockServer
$ ruby main.rb