How to mock a REST API for frontend development and testing: static fixtures, Mock Service Worker (MSW), json-server, Prism from an OpenAPI spec and Playwright route interception — with code, error states and contract-drift advice.