Skip to content

Commit 6a1153f

Browse files
committed
docs: Update API endpoint from api.oasisweb4.one to api.oasisweb4.com in all documentation
1 parent 8ddac57 commit 6a1153f

4 files changed

Lines changed: 1705 additions & 8 deletions

File tree

API_REFERENCE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OASIS API Reference
22

3-
**Base URL:** `https://api.oasisweb4.one`
3+
**Base URL:** `https://api.oasisweb4.com`
44
**Version:** 1.0
55
**Contact:** Telegram @maxgershfield
66

@@ -14,7 +14,7 @@ All API requests (except registration) require a JWT token.
1414

1515
**1. Register:**
1616
```bash
17-
curl -X POST "https://api.oasisweb4.one/api/avatar/register" \
17+
curl -X POST "https://api.oasisweb4.com/api/avatar/register" \
1818
-H "Content-Type: application/json" \
1919
-d '{
2020
"username": "your_username",
@@ -27,7 +27,7 @@ curl -X POST "https://api.oasisweb4.one/api/avatar/register" \
2727

2828
**2. Login (Future Sessions):**
2929
```bash
30-
curl -X POST "https://api.oasisweb4.one/api/avatar/authenticate" \
30+
curl -X POST "https://api.oasisweb4.com/api/avatar/authenticate" \
3131
-H "Content-Type: application/json" \
3232
-d '{
3333
"username": "your_username",
@@ -37,7 +37,7 @@ curl -X POST "https://api.oasisweb4.one/api/avatar/authenticate" \
3737

3838
**3. Use Token in Requests:**
3939
```bash
40-
curl -X GET "https://api.oasisweb4.one/api/data/load-holon/{id}" \
40+
curl -X GET "https://api.oasisweb4.com/api/data/load-holon/{id}" \
4141
-H "Authorization: Bearer YOUR_JWT_TOKEN"
4242
```
4343

@@ -242,7 +242,7 @@ Authorization: Bearer YOUR_TOKEN
242242

243243
**Example:**
244244
```bash
245-
curl -X POST "https://api.oasisweb4.one/api/data/save-holon/SolanaOASIS/false" \
245+
curl -X POST "https://api.oasisweb4.com/api/data/save-holon/SolanaOASIS/false" \
246246
-H "Authorization: Bearer YOUR_TOKEN" \
247247
-H "Content-Type: application/json" \
248248
-d '{ "name": "TestData", "holonType": "Test", "metadata": {} }'
@@ -308,7 +308,7 @@ All responses follow this format:
308308
### JavaScript
309309

310310
```javascript
311-
const OASIS_API = 'https://api.oasisweb4.one';
311+
const OASIS_API = 'https://api.oasisweb4.com';
312312

313313
class OASISClient {
314314
constructor(token) {
@@ -349,7 +349,7 @@ import requests
349349

350350
class OASISClient:
351351
def __init__(self, token):
352-
self.api = 'https://api.oasisweb4.one'
352+
self.api = 'https://api.oasisweb4.com'
353353
self.headers = {'Authorization': f'Bearer {token}'}
354354

355355
def save_data(self, data):
@@ -414,7 +414,7 @@ class OASISClient:
414414

415415
**If you encounter issues:**
416416

417-
1. Check API health: `curl https://api.oasisweb4.one/health`
417+
1. Check API health: `curl https://api.oasisweb4.com/health`
418418
2. Verify JWT token is valid (expires after 24 hours)
419419
3. Check response for error messages
420420
4. Contact: Telegram @maxgershfield

0 commit comments

Comments
 (0)