← 返回卡片

原书出处

Designing APIs with Swagger and OpenAPI

21 The API prerelease checklist 21.9 Improving security

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

Let’s consider another example: if Bob is allowed to read /foos/bobs-thing with a GET, but is not allowed to update it, what status code should we respond with when Bob tries PUT /foos/bobs-thing? Here, a 403 Forbidden response is perfectly acceptable, as

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

原书定位详情

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

正文位置:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch21.htm

EPUB SHA-256:b429095d92e98a7ef17df001e65a97cc8b58fbe9dde8dd4f4731c613ff762c25