Skip to content

Commit 5741263

Browse files
committed
md
1 parent f184e3b commit 5741263

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

API.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ POST /api/chat
3535
|HTTP Status Code |Meaning|Description|Data schema|
3636
|---|---|---|---|
3737
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
38-
38+
|404|[error] |失败|Inline|
3939
### Responses Data Schema
4040

4141
## POST check
@@ -55,7 +55,6 @@ POST /api/check
5555
|HTTP Status Code |Meaning|Description|Data schema|
5656
|---|---|---|---|
5757
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
58-
5958
### Responses Data Schema
6059

6160
## POST nfmgr
@@ -92,7 +91,7 @@ POST /api/nfmgr
9291
|HTTP Status Code |Meaning|Description|Data schema|
9392
|---|---|---|---|
9493
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
95-
94+
|404|[error] |User not found|Inline|
9695
### Responses Data Schema
9796

9897
## POST info
@@ -127,7 +126,7 @@ POST /api/info
127126
|HTTP Status Code |Meaning|Description|Data schema|
128127
|---|---|---|---|
129128
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
130-
129+
|401|[error] |Invalid token|Inline|
131130
### Responses Data Schema
132131

133132
## POST newfriend
@@ -154,7 +153,7 @@ POST /api/newfriend
154153
|HTTP Status Code |Meaning|Description|Data schema|
155154
|---|---|---|---|
156155
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|OK|Inline|
157-
156+
|401|[error] |Unauthorized|Inline|
158157
### Responses Data Schema
159158

160159
# file
@@ -193,7 +192,7 @@ POST /api/file/save
193192
|HTTP Status Code |Meaning|Description|Data schema|
194193
|---|---|---|---|
195194
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
196-
195+
|500|[error] |Error saving file|Inline|
197196
### Responses Data Schema
198197

199198
## POST upload
@@ -253,7 +252,7 @@ GET /api/file/get
253252
|HTTP Status Code |Meaning|Description|Data schema|
254253
|---|---|---|---|
255254
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
256-
255+
|404|[error] |File not found|Inline|
257256
### Responses Data Schema
258257

259258
## POST commands
@@ -358,7 +357,7 @@ POST /api/login
358357
|HTTP Status Code |Meaning|Description|Data schema|
359358
|---|---|---|---|
360359
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
361-
360+
|401|[error] |Invalid credentials|Inline|
362361
### Responses Data Schema
363362

364363
## POST signup
@@ -395,7 +394,7 @@ POST /api/signup
395394
|HTTP Status Code |Meaning|Description|Data schema|
396395
|---|---|---|---|
397396
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
398-
397+
|409|[error] |Username already exists|Inline|
399398
### Responses Data Schema
400399

401400
## POST avatar

0 commit comments

Comments
 (0)