知识卡片
登录建模为创建会话
一次登录产生一段可识别的交互会话,所以可以用 POST /sessions 表达创建。登录请求最好只描述所需字段,与用户注册或资料形状分开。身份标识与访问凭据各有用途。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Integrating and releasing the web application 14.2 Implementing authorization · 查看原书依据
The session concept is connected to a user—by logging in, a session starts for a specific user. In other words, we create a session. Did you notice? With our new concept in the domain model, CRUD comes naturally, and we can apply
参考来源
- 位置:《Designing APIs with Swagger and OpenAPI》第14章《Integrating and releasing the web application》(来源项目 book-source:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch14.htm,阅读块 74)
- 结论依据:原文增加 Session 概念从而理解 POST /sessions。
- 原始内容:The session concept is connected to a user—by logging in, a session starts for a specific user. In other words, we create a session. Did you notice? With our new concept in the domain model, CRUD comes naturally, and we can apply