@schmock/vue
@schmock/vue
Vue 3.5+ adapter for Schmock — a plugin and a composable that intercept fetch. It needs app.onUnmount, which Vue added in 3.5.
Part of Schmock — mock APIs from OpenAPI specs or hand-crafted routes.
Install
bun add -d @schmock/vue
Usage
import { createApp } from "vue";
import { schmock } from "@schmock/core";
import { schmockPlugin } from "@schmock/vue";
const mock = schmock();
mock("GET /users", [{ id: 1, name: "Alice" }]);
createApp(App).use(schmockPlugin, { mock });
Documentation
License
MIT © Khalic Lab
Related Packages
@scalar/nuxt
Nuxt module to render beautiful, interactive API documentation from OpenAPI/Swag...
187,898
16,296
vuepress-api-playground
The VuePress API Playground is a Vue.js component for showcasing and testing API...
1,650
4
@ahmttyydn/nuxt
Nuxt module to render beautiful, interactive API documentation from OpenAPI/Swag...
1,075
0
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.6.0 | ^3.5.0 | MIT | |
| 2.5.0 | ^3.5.0 | MIT | |
| 2.4.1 | ^3.5.0 | MIT | |
| 2.4.0 | ^3.5.0 | MIT | |
| 2.3.1 | ^3.5.0 | MIT | |
| 2.3.0 | ^3.5.0 | MIT | |
| 2.2.3 | ^3.5.0 | MIT | |
| 2.2.2 | ^3.5.0 | MIT | |
| 2.2.1 | ^3.5.0 | MIT | |
| 2.2.0 | ^3.5.0 | MIT | |
| 2.1.6 | ^3.5.0 | MIT | |
| 2.1.5 | ^3.5.0 | MIT | |
| 2.1.4 | ^3.5.0 | MIT | |
| 2.1.3 | ^3.5.0 | MIT | |
| 2.1.2 | ^3.5.0 | MIT | |
| 2.1.1 | ^3.5.0 | MIT | |
| 2.1.0 | ^3.5.0 | MIT | |
| 2.0.3 | ^3.5.0 | MIT | |
| 2.0.2 | ^3.5.0 | MIT | |
| 2.0.1 | ^3.5.0 | MIT | |
| 2.0.0 | ^3.3.0 | MIT |