Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SimpleAstronaut committed May 9, 2022
2 parents 85ac3c1 + 2ef32dd commit ecd56f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Simple-Message 简单留言板
正在开发中,暂未发布正式版本
## 1.介绍
Simple-Message是我个人开发的一个业余小项目,目的是开发一个前后端分离的匿名留言系统。
调用8081端口
Expand Down
12 changes: 6 additions & 6 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# api
# SimpleMessage 后端api 文档
## 1.api文档版本
| 日期 | 版本 | 内容 |
| ---- | ---- | ---- |
Expand All @@ -10,12 +10,12 @@
| 200 | 请求/操作成功 |
| 300 | 请求/操作失败 |
### 2.1 首页接口
地址: `http://127.0.0.1/``http://127.0.0.1/index.html`
地址: `http://127.0.0.1:8081/``http://127.0.0.1:8081/index.html`
调用方式:`GET`
调用示例: 略
返回示例:略
### 2.2 添加留言
地址:`http://127.0.0.1/add`
地址:`http://127.0.0.1:8081/add`
调用方式:`GET`
请求参数:
| key | value |
Expand All @@ -24,19 +24,19 @@
| msg | 留言内容 |
请求示例:
```
http://127.0.0.1/add?user=test&msg=test
http://127.0.0.1:8081/add?user=test&msg=test
```
返回示例:
```json
{ "status" : 200 }
```
### 2.3 获取全部留言
地址:`http://127.0.0.1/get`
地址:`http://127.0.0.1:8081/get`
调用方式:`GET`
请求参数:无
请求示例:
```
http://127.0.0.1/get
http://127.0.0.1:8081/get
```
返回参数:
| 参数 | 信息 |
Expand Down

0 comments on commit ecd56f9

Please sign in to comment.