Skip to content

Commit 9e400f8

Browse files
author
Ignacio Van Droogenbroeck
committed
updating api endpoints in the docs
1 parent 3fc6ad6 commit 9e400f8

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

docs/api-reference/overview.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ data = {
4747
}
4848

4949
response = requests.post(
50-
"http://localhost:8000/write/v2/msgpack",
50+
"http://localhost:8000/write/v1/msgpack",
5151
headers={
5252
"Authorization": "Bearer YOUR_TOKEN",
5353
"Content-Type": "application/msgpack"
@@ -242,9 +242,9 @@ cors_origins = ["http://localhost:3000", "https://your-app.com"]
242242
Arc API uses URL versioning:
243243

244244
- `/write` - Current version (InfluxDB compatibility)
245-
- `/write/v2/msgpack` - Versioned MessagePack endpoint
245+
- `/write/v1/msgpack` - Versioned MessagePack endpoint
246246
- `/api/v1/write` - InfluxDB 1.x compatible
247-
- `/api/v2/write` - InfluxDB 2.x compatible
247+
- `/api/v1/write/influxdb` - InfluxDB 2.x compatible
248248

249249
## Client Libraries
250250

@@ -272,7 +272,7 @@ class ArcClient:
272272
}
273273

274274
response = requests.post(
275-
f"{self.base_url}/write/v2/msgpack",
275+
f"{self.base_url}/write/v1/msgpack",
276276
headers={**self.headers, "Content-Type": "application/msgpack"},
277277
data=msgpack.packb(data)
278278
)
@@ -320,7 +320,7 @@ class ArcClient {
320320
}]
321321
};
322322

323-
await this.client.post('/write/v2/msgpack',
323+
await this.client.post('/write/v1/msgpack',
324324
msgpack.encode(data),
325325
{ headers: { 'Content-Type': 'application/msgpack' } }
326326
);
@@ -382,7 +382,7 @@ func (c *ArcClient) Write(m string, fields map[string]interface{}, tags map[stri
382382
}
383383

384384
body, _ := msgpack.Marshal(data)
385-
req, _ := http.NewRequest("POST", c.BaseURL+"/write/v2/msgpack", bytes.NewBuffer(body))
385+
req, _ := http.NewRequest("POST", c.BaseURL+"/write/v1/msgpack", bytes.NewBuffer(body))
386386
req.Header.Set("Authorization", "Bearer "+c.Token)
387387
req.Header.Set("Content-Type", "application/msgpack")
388388

docs/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ data = {
105105

106106
# Send data
107107
response = requests.post(
108-
"http://localhost:8000/write/v2/msgpack",
108+
"http://localhost:8000/write/v1/msgpack",
109109
headers={
110110
"Authorization": f"Bearer {token}",
111111
"Content-Type": "application/msgpack"
@@ -139,7 +139,7 @@ data = {
139139
}
140140

141141
response = requests.post(
142-
"http://localhost:8000/write/v2/msgpack",
142+
"http://localhost:8000/write/v1/msgpack",
143143
headers={
144144
"Authorization": f"Bearer {token}",
145145
"Content-Type": "application/msgpack"

docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ data = {
5454

5555
# Send columnar data (2.42M RPS throughput)
5656
response = requests.post(
57-
"http://localhost:8000/write/v2/msgpack",
57+
"http://localhost:8000/write/v1/msgpack",
5858
headers={
5959
"Authorization": "Bearer YOUR_TOKEN",
6060
"Content-Type": "application/msgpack",

0 commit comments

Comments
 (0)