https://github.com/mswjs/source
Generate MSW request handlers from various sources (HAR files, OpenAPI documents, etc).
https://github.com/mswjs/source
api generate handlers har mock-service-worker mocking msw openapi request swagger
Last synced: 26 days ago
JSON representation
Generate MSW request handlers from various sources (HAR files, OpenAPI documents, etc).
- Host: GitHub
- URL: https://github.com/mswjs/source
- Owner: mswjs
- License: mit
- Created: 2021-02-14T00:17:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T02:19:46.000Z (6 months ago)
- Last Synced: 2025-04-01T07:46:42.421Z (about 1 month ago)
- Topics: api, generate, handlers, har, mock-service-worker, mocking, msw, openapi, request, swagger
- Language: TypeScript
- Homepage: https://source.mswjs.io
- Size: 3.39 MB
- Stars: 160
- Watchers: 4
- Forks: 8
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
![]()
Source
Generate MSW request handlers from HAR files, OpenAPI documents, and other sources.
## Motivation
This library has been created to simplify the mocking workflow when working with Mock Service Worker.
> [Learn more about the motivation behind Source](https://source.mswjs.io/docs/).
## Documentation
- [**Getting started**](https://source.mswjs.io/docs/getting-started)
- [Using network archives (HAR)](https://source.mswjs.io/docs/integrations/har)
- [Using OpenAPI (Swagger) documents](https://source.mswjs.io/docs/integrations/open-api)## Support the project
If you find this project helpful, please consider becoming our [GitHub sponsor](https://github.com/sponsors/mswjs). Your contributions help us maintain and develop new open-source libraries to help the entire ecosystem with testing. Thank you!
## Special thanks
- [Weyert de Boer](https://github.com/weyert) for the original implementation of [`@tapico/msw-webarchive`](https://github.com/Tapico/tapico-msw-webarchive).