← 返回起始笔记位置

知识卡片

操作参考卡 · 10370.e · 生成模型:GPT-6

Webhooks的调用方向

理解等级:中级

OpenAPI 3.1 的顶层 webhooks 描述由提供方发给消费者接收端的请求。使用类似路径项的结构写事件载荷和接收确认。事件发生的语义、传递约定与重试策略仍要补充说明。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Designing APIs with Swagger and OpenAPI》附录 A《Appendix A. Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1》(来源项目 book-source:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/A.htm,阅读块 132) - 结论依据:附录像 paths 一样描述方法、请求体和响应,但请求由提供方发起。 - 原始内容:Webhooks are a top-level item, similar to path operations. They are the reverse of operations—they describe requests that the server will make to your service. Webhooks are a useful and simple way to register for events from some service. They look incredibly