Skip to content

Commit af758d3

Browse files
committed
docs: update OpenAPI paths to include versioning in endpoint URLs
1 parent 4f1c3d2 commit af758d3

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/* endpoints."
6+
"description": "Developer HTTP APIs for AstrBot. Use API Key authentication for /api/open/v1/* endpoints."
77
},
88
"servers": [
99
{
@@ -21,7 +21,7 @@
2121
}
2222
],
2323
"paths": {
24-
"/api/open/bots": {
24+
"/api/open/v1/bots": {
2525
"get": {
2626
"tags": [
2727
"Open API"
@@ -53,7 +53,7 @@
5353
}
5454
}
5555
},
56-
"/api/open/file/upload": {
56+
"/api/open/v1/file/upload": {
5757
"post": {
5858
"tags": [
5959
"Open API"
@@ -104,7 +104,7 @@
104104
}
105105
}
106106
},
107-
"/api/open/chat/send": {
107+
"/api/open/v1/chat/send": {
108108
"post": {
109109
"tags": [
110110
"Open API"
@@ -181,7 +181,7 @@
181181
}
182182
}
183183
},
184-
"/api/open/chat/sessions": {
184+
"/api/open/v1/chat/sessions": {
185185
"get": {
186186
"tags": [
187187
"Open API"
@@ -242,7 +242,7 @@
242242
}
243243
}
244244
},
245-
"/api/open/message/send": {
245+
"/api/open/v1/message/send": {
246246
"post": {
247247
"tags": [
248248
"Open API"
@@ -454,7 +454,7 @@
454454
}
455455
}
456456
},
457-
"/api/open/chat/configs": {
457+
"/api/open/v1/configs": {
458458
"get": {
459459
"tags": [
460460
"Open API"

0 commit comments

Comments
 (0)