@@ -47,7 +47,7 @@ data = {
4747}
4848
4949response = 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"]
242242Arc 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
0 commit comments