# 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-attachment-attachment.yaml get: summary: '获取单个 attachment/{attachment}' tags: - attachment operationId: get_api_v2_attachment_attachment_ description: 实现:`AttachmentController@show` parameters: - name: attachment 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 user_uid: type: string name: type: string filename: type: string title: type: string size: type: string content_type: type: string status: type: integer created_at: type: string updated_at: type: string small: type: string middle: type: string url: type: string thumbnail: type: string 401: $ref: '../../main.yaml#/components/responses/Unauthorized' 422: $ref: '../../main.yaml#/components/responses/ValidationError' put: summary: '更新 attachment/{attachment}' tags: - attachment operationId: put_api_v2_attachment_attachment_ description: 实现:`AttachmentController@update` parameters: - name: attachment in: path required: true schema: type: string requestBody: required: false content: application/json: schema: type: object properties: title: 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 user_uid: type: string name: type: string filename: type: string title: type: string size: type: string content_type: type: string status: type: integer created_at: type: string updated_at: type: string small: type: string middle: type: string url: type: string thumbnail: type: string 401: $ref: '../../main.yaml#/components/responses/Unauthorized' 422: $ref: '../../main.yaml#/components/responses/ValidationError' patch: summary: '更新 attachment/{attachment}' tags: - attachment operationId: patch_api_v2_attachment_attachment_ description: 实现:`AttachmentController@update` parameters: - name: attachment in: path required: true schema: type: string requestBody: required: false content: application/json: schema: type: object properties: title: 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 user_uid: type: string name: type: string filename: type: string title: type: string size: type: string content_type: type: string status: type: integer created_at: type: string updated_at: type: string small: type: string middle: type: string url: type: string thumbnail: type: string 401: $ref: '../../main.yaml#/components/responses/Unauthorized' 422: $ref: '../../main.yaml#/components/responses/ValidationError' delete: summary: '删除 attachment/{attachment}' tags: - attachment operationId: delete_api_v2_attachment_attachment_ description: 实现:`AttachmentController@destroy` parameters: - name: attachment in: path required: true schema: type: string - name: name in: query 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'