节省时间喝杯 🍺,几秒钟内即可开箱即用地准备好您的 API。防止人为错误,通过强制标准格式确保返回结果的准确性。
获得您的契约!通过 orval 和 openapi 的结合,您为团队建立了强大的标准,避免任何误解问题,让您能够专注于用户界面。
无需等待后端准备就绪即可测试您的应用程序。使用 Orval 生成您的模拟,确保您已准备好连接到您的 API。
与其浪费时间编写模型、HTTP 调用和模拟,不如继续前进,专注于其他需求。
module.exports = {petstore: {output: {mode: 'split',target: './src/petstore.ts',schemas: './src/model',client: 'react-query',mock: true,},input: {target: './petstore.yaml',},},};
my-app└── src├── petstore.definition.ts├── petstore.schemas.ts├── petstore.msw.ts├── petstore.ts└── model├── index.ts├── pet.ts├── pets.ts├── createPetsBody.ts└── error.ts