Is it possible to mock odata endpoints using mswjs?
I currently use json-server as my temporary backend until the odata endpoint is ready, at which point I’ll migrate my queries to use that. I plan to use mswjs to mock the server in my tests, but would like to migrate now to use for development too.
Is it possible to replicate the odata filter functionality, or will I need to define explicit endpoints for each possible $filter query I want to use for testing?
Eg ‘/users$filter=id in (‘1’, ‘2’)’
I’m unsure how to replicate the $filter functionality that I need.