http-mock-adapter icon indicating copy to clipboard operation
http-mock-adapter copied to clipboard

Ability to mock whole API interface for local development without a need of a server.

Open cyberail opened this issue 1 year ago • 3 comments

Implement faker for generating fake data depending on the response and request models of mapped endpoints.

Currently, we need to provide different types of data, manually to test various repos, or the UIs, or domain logics.

But the most of the use of this package happens in unit tests of course for unit testing. Idea that I am trying to suggest is to give users ability to develop the app without need of the server or without some junky test datas.

I think that this package can extend to the point where it will not only be the package for testing from unit tests, but the package that can mock whole API interface by providing necessary models and by running one or two commands user can have his/her API interface fully mocked in flutter till the day he/she decides to move on to the production, in which case he/she should be able to do it just by exchanging DioAdapters.

packages that might be necessary for that implementation might be: mason, build_runner,

Currently I don't have full ideas interface and implementation but slowly will update it.

Any ideas and suggestions are welcomed.

cyberail avatar Nov 28 '23 15:11 cyberail