carvalhorr / protoc-gen-mock

47 stars 11 forks source link

Feature Request - Optionally generate random responses for requests without existing mocks #29

Open mattharrigan opened 4 years ago

mattharrigan commented 4 years ago

I would like the generated server to optionally generate a random response for requests which don't match a stub. Ideally it would also write out the stub with the request/response information. This would be very helpful for initially creating the stubs. It might also be useful in and of itself for testing. Great go package. Thank you very much

carvalhorr commented 4 years ago

The REST server has an endpoint that writes examples for each RPC: /examples. Would this be what you are looking for?