知识卡片

操作参考卡 · 1958.ac.2.h.2.d.1.a · 生成模型:GPT-6

用契约启动模拟服务

理解等级:中级

选定契约版本,以 Prism 的 mock 模式和定义路径启动,再调用已声明的操作。把前端测试地址指向该服务,验证解析和渲染。可让 mock 和后端开发同时开始。[[契约支持并行开发]]

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Designing APIs with Swagger and OpenAPI》第12章《Implementing frontend code and reacting to changes》(来源项目 book-source:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch12.htm,阅读块 24) - 结论依据:Prism 消费 OpenAPI 定义并生成符合所述形状的响应。 - 原始内容:Prism is an open source mocking server that reads in an OpenAPI definition and serves up responses that fit the shape of the data. In other words, it serves up what you’ve described in the OpenAPI definition. It is simple and gaining