# 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-chats-chat.yaml get: summary: '获取单个 chats/{chat}' tags: - chats operationId: get_api_v2_chats_chat_ description: 实现:`ChatController@show` parameters: - name: chat in: path required: true schema: type: string responses: 200: description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。' content: application/json: schema: type: object properties: ok: type: boolean message: type: string data: type: object properties: id: type: integer title: type: string user_id: type: integer created_at: type: string updated_at: type: string messages_count: type: integer 401: $ref: '../../main.yaml#/components/responses/Unauthorized' 422: $ref: '../../main.yaml#/components/responses/ValidationError' put: summary: '更新 chats/{chat}' tags: - chats operationId: put_api_v2_chats_chat_ description: 实现:`ChatController@update` parameters: - name: chat in: path required: true schema: type: string responses: 200: description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。' content: application/json: schema: type: object properties: ok: type: boolean message: type: string data: type: object 401: $ref: '../../main.yaml#/components/responses/Unauthorized' 422: $ref: '../../main.yaml#/components/responses/ValidationError' patch: summary: '更新 chats/{chat}' tags: - chats operationId: patch_api_v2_chats_chat_ description: 实现:`ChatController@update` parameters: - name: chat in: path required: true schema: type: string responses: 200: description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。' content: application/json: schema: type: object properties: ok: type: boolean message: type: string data: type: object 401: $ref: '../../main.yaml#/components/responses/Unauthorized' 422: $ref: '../../main.yaml#/components/responses/ValidationError' delete: summary: 单个软删除 tags: - chats operationId: delete_api_v2_chats_chat_ description: 实现:`ChatController@destroy` parameters: - name: chat in: path required: true schema: type: string responses: 200: description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。' content: application/json: schema: type: object properties: ok: type: boolean message: type: string data: type: object 401: $ref: '../../main.yaml#/components/responses/Unauthorized' 422: $ref: '../../main.yaml#/components/responses/ValidationError'