Skip to content

Commit 24aa577

Browse files
committed
docs: update OpenAPI paths to remove 'open' prefix and correct endpoint URLs
1 parent dbefb80 commit 24aa577

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

public/openapi.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "AstrBot Open API",
55
"version": "1.0.0",
6-
"description": "Developer HTTP APIs for AstrBot. Use API Key authentication for /api/open/v1/* endpoints."
6+
"description": "Developer HTTP APIs for AstrBot. Use API Key authentication for /api/v1/* endpoints."
77
},
88
"servers": [
99
{
@@ -17,7 +17,7 @@
1717
}
1818
],
1919
"paths": {
20-
"/api/open/v1/bots": {
20+
"/api/v1/im/bots": {
2121
"get": {
2222
"tags": [
2323
"Open API"
@@ -49,7 +49,7 @@
4949
}
5050
}
5151
},
52-
"/api/open/v1/file/upload": {
52+
"/api/v1/file": {
5353
"post": {
5454
"tags": [
5555
"Open API"
@@ -100,7 +100,7 @@
100100
}
101101
}
102102
},
103-
"/api/open/v1/chat/send": {
103+
"/api/v1/chat": {
104104
"post": {
105105
"tags": [
106106
"Open API"
@@ -187,7 +187,7 @@
187187
}
188188
}
189189
},
190-
"/api/open/v1/chat/sessions": {
190+
"/api/v1/chat/sessions": {
191191
"get": {
192192
"tags": [
193193
"Open API"
@@ -257,7 +257,7 @@
257257
}
258258
}
259259
},
260-
"/api/open/v1/message/send": {
260+
"/api/v1/im/message": {
261261
"post": {
262262
"tags": [
263263
"Open API"
@@ -322,7 +322,7 @@
322322
}
323323
}
324324
},
325-
"/api/open/v1/configs": {
325+
"/api/v1/configs": {
326326
"get": {
327327
"tags": [
328328
"Open API"

0 commit comments

Comments
 (0)