Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DX] Backend mock #537

Open
DorijanH opened this issue Jan 20, 2024 · 0 comments
Open

[DX] Backend mock #537

DorijanH opened this issue Jan 20, 2024 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@DorijanH
Copy link
Member

DorijanH commented Jan 20, 2024

Currently

When developing an application with CRUD features and an external API, we don't have the clearest way of mocking that communication before the API is ready.

Most of the time we would resort to manually creating mock data in our application and manually returning it in the repository layer after some delay.

This could be fine for GET requests, but the PUT, POST and DELETE would require additional logic just for making it work correctly.

Proposed

We could change this approach by using json server alongside mockaroo.

Json server would give us a fake REST API with full CRUD support and mockaroo would generate mock database data in the shape we define.

Also, we can create custom routes alongside these CRUD autogenerated ones for defining logic that is not a simple CRUD.


What do you think? Could this be of use to us?

@DorijanH DorijanH added enhancement New feature or request question Further information is requested labels Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant