A AuthMS API Wiki API Reference iam.tianv.com →

POST /notifications/test

向指定渠道和目标发送一条测试通知,创建测试通知记录到数据库,用于验证通知服务配置是否正确 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。

通知服务 `bearerAuth` application/json

Request Body

Schema: dto.TestNotificationRequest

FieldTypeRequiredExampleConstraintsDescription
channel string Yes email 渠道
target string Yes user@example.com 目标

Responses

StatusDescriptionSchema
200测试通知已发送dto.TestNotificationDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足gitee_com_linmes_authms_base_dto.SimpleResponse
404资源未找到gitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.TestNotificationDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.TestNotificationResponse No
message string No

dto.TestNotificationResponse

测试通知发送结果

FieldTypeRequiredExampleConstraintsDescription
channel string No email 渠道
status string No sent 状态
target string No user@example.com 目标
test_id string No test-1234567890 测试ID

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No