### signup user
POST http://localhost:6688/api/signup Content-Type: application/json
}
### signup user
POST http://localhost:6688/api/signup Content-Type: application/json
}
### signup user
POST http://localhost:6688/api/signup Content-Type: application/json
}
### signin user (valid)
POST http://localhost:6688/api/signin Content-Type: application/json
}
### signin user
POST http://localhost:6688/api/signin Content-Type: application/json
} ### signin user (invalid)
# @name signin POST http://localhost:6688/api/signin Content-Type: application/json
}
@token = {{signin.response.body.token}}
### create chat POST http://localhost:6688/api/chats Content-Type: application/json Authorization: Bearer {{token}}
}
### get chat list
GET http://localhost:6688/api/chats Authorization: Bearer {{token}}
### get user list
GET http://localhost:6688/api/users Authorization: Bearer {{token}}
### upload files
POST http://localhost:6688/api/upload Authorization: Bearer {{token}} Content-Type: multipart/form-data; boundary=MyBoundary
--MyBoundary Content-Disposition: form-data; filename="xdiff1.png" Content-Type: application/octet-stream
< /Users/tchen/snapshots/xdiff1.png --MyBoundary Content-Disposition: form-data; filename="hello.txt" Content-Type: text/plain
Hello, World! --MyBoundary--
### get files
GET http://localhost:6688/api/files/1/339/807/e635afbeab088ce33206fdf4223a6bb156.png Authorization: Bearer {{token}}
### send a message
POST http://localhost:6688/api/chats/1 Content-Type: application/json Authorization: Bearer {{token}}
}
### get messages
GET http://localhost:6688/api/chats/1/messages?limit=6&last_id=5 Authorization: Bearer {{token}}
### patch chat PATCH http://localhost:6688/api/chats/3 Content-Type: application/json Authorization: Bearer {{token}}
], "name": "czlan", "public": true
}
### delete chat DELETE http://localhost:6688/api/chats/1 Authorization: Bearer {{token}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。