← 返回卡片

原书出处

Automating API Delivery APIOps with OpenAPI

09 API 制品的构建与配置部署 9.2 Build stage: Simulating APIs with mocks

核验版本的摘录快照 · 导入于 2026-11-24T09:39:53.482Z

Suppose you wanted to test how an API consumer behaves when the API has random delays in response times. Say you wanted to simulate a uniform distribution of latency between 50 and 800 milliseconds. It may be difficult to inject this behavior and produce it on demand in the real service, but you could do this with a mock API.

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-9.xhtml#p114

EPUB SHA-256:73b94e6cdce95a5b45154bc48c68151659ddf69ec246d4fad79dc89db000857e