OpenAPI规范 - 普通标题

发布于 2025-02-07 01:06:04 字数 198 浏览 3 评论 0原文

我们正在实现API管理功能,并且根据启用功能(AUTH等)将一些转换应用于提供的OA。

我看到的总是存在的功能之一是限制速率,我知道x-ratelimit - *我们产品应用的标头。

在OA中添加这些标头以使客户意识到它们是最好的做法吗?

有没有办法在OAS 3.0.3或3.1.0中定义多个响应中的常见标头?

we are implementing an API Management capability and we are applying some transformations to the OAS provided based on the enabled features (Auth, etc).

One of the features that I see always present is rate limiting, and I am aware of X-RateLimit-* headers being applied by our product.

Is it a best practice to add those headers in the OAS for customers to be aware of them?

Is there a way to define in OAS 3.0.3 or 3.1.0 common headers to apply in multiple responses?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文