知识卡片
集合与单资源路径
GET /jobs 表示集合读取,POST /jobs 可由服务器创建新成员,GET 或 DELETE /jobs/{id} 作用于一个已标识对象。需要更新时再按全量替换或部分修改选择适当方法。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Creating an API design using OpenAPI 10.3 The CRUD approach to API operations · 查看原书依据
We call the URL to an individual resource a resource endpoint. On a resource endpoint, you can use HTTP GET to retrieve the resource, PUT or PATCH to update it, and DELETE to remove it.
参考来源
- 位置:《Designing APIs with Swagger and OpenAPI》第10章《Creating an API design using OpenAPI》(来源项目 book-source:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch10.htm,阅读块 133)
- 结论依据:正文区分带 ID 的个体路径与供列表、创建的集合路径。
- 原始内容:We call the URL to an individual resource a resource endpoint. On a resource endpoint, you can use HTTP GET to retrieve the resource, PUT or PATCH to update it, and DELETE to remove it.