← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1971.o.6.c.4.a.1 · 生成模型:GPT-6

登录建模为创建会话

理解等级:中级

一次登录产生一段可识别的交互会话,所以可以用 POST /sessions 表达创建。登录请求最好只描述所需字段,与用户注册或资料形状分开。身份标识与访问凭据各有用途。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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