```
chore: refactor logging module, update genesis timestamp, remove model relationships, and reorganize routers - Rename logging.py to logger.py and update import paths in poa.py and main.py - Update devnet genesis timestamp to 1766828620 - Remove SQLModel Relationship declarations from Block, Transaction, and Receipt models - Add SessionDep type alias and get_session dependency in coordinator-api deps - Reorganize coordinator-api routers: replace explorer/registry with exchange, users, marketplace
This commit is contained in:
@ -29,7 +29,7 @@ GET /v1/jobs?api_key=your_api_key_here
|
||||
|
||||
### cURL
|
||||
```bash
|
||||
curl -X GET https://api.aitbc.io/v1/jobs \
|
||||
curl -X GET https://aitbc.bubuit.net/api/v1/jobs \
|
||||
-H "X-API-Key: your_api_key_here"
|
||||
```
|
||||
|
||||
@ -42,7 +42,7 @@ headers = {
|
||||
}
|
||||
|
||||
response = requests.get(
|
||||
"https://api.aitbc.io/v1/jobs",
|
||||
"https://aitbc.bubuit.net/api/v1/jobs",
|
||||
headers=headers
|
||||
)
|
||||
```
|
||||
@ -53,7 +53,7 @@ const headers = {
|
||||
"X-API-Key": "your_api_key_here"
|
||||
};
|
||||
|
||||
fetch("https://api.aitbc.io/v1/jobs", {
|
||||
fetch("https://aitbc.bubuit.net/api/v1/jobs", {
|
||||
headers: headers
|
||||
})
|
||||
.then(response => response.json())
|
||||
@ -100,12 +100,12 @@ Visit the [Dashboard](https://dashboard.aitbc.io/api-keys)
|
||||
|
||||
### Revoke a Key
|
||||
```bash
|
||||
curl -X DELETE https://api.aitbc.io/v1/api-keys/{key_id} \
|
||||
curl -X DELETE https://aitbc.bubuit.net/api/v1/api-keys/{key_id} \
|
||||
-H "X-API-Key: your_master_key"
|
||||
```
|
||||
|
||||
### Regenerate a Key
|
||||
```bash
|
||||
curl -X POST https://api.aitbc.io/v1/api-keys/{key_id}/regenerate \
|
||||
curl -X POST https://aitbc.bubuit.net/api/v1/api-keys/{key_id}/regenerate \
|
||||
-H "X-API-Key: your_master_key"
|
||||
```
|
||||
@ -332,6 +332,11 @@ Retrieve statistics for a specific miner.
|
||||
GET /v1/health
|
||||
```
|
||||
|
||||
Production base URL is `https://aitbc.bubuit.net/api`, so the full health URL is:
|
||||
```http
|
||||
GET /api/v1/health
|
||||
```
|
||||
|
||||
Check the health status of the coordinator service.
|
||||
|
||||
**Response:**
|
||||
@ -9,8 +9,8 @@ The complete OpenAPI 3.0 specification for the AITBC Coordinator API is availabl
|
||||
|
||||
## Interactive Documentation
|
||||
|
||||
- [Swagger UI](https://api.aitbc.io/docs) - Interactive API explorer
|
||||
- [ReDoc](https://api.aitbc.io/redoc) - Alternative documentation view
|
||||
- [Swagger UI](https://aitbc.bubuit.net/api/docs) - Interactive API explorer
|
||||
- [ReDoc](https://aitbc.bubuit.net/api/redoc) - Alternative documentation view
|
||||
|
||||
## Download Specification
|
||||
|
||||
@ -50,7 +50,7 @@ API requests are rate-limited based on your subscription plan.
|
||||
## WebSocket API
|
||||
|
||||
Real-time updates available at:
|
||||
- WebSocket: `wss://api.aitbc.io/ws`
|
||||
- WebSocket: `wss://aitbc.bubuit.net/ws`
|
||||
- Message types: job_update, marketplace_update, receipt_created
|
||||
|
||||
## Code Generation
|
||||
@ -10,7 +10,7 @@ The Coordinator API is the central service of the AITBC platform, responsible fo
|
||||
## Base URL
|
||||
|
||||
```
|
||||
Production: https://api.aitbc.io
|
||||
Production: https://aitbc.bubuit.net/api
|
||||
Staging: https://staging-api.aitbc.io
|
||||
Development: http://localhost:8011
|
||||
```
|
||||
@ -111,7 +111,7 @@ Official SDKs are available for:
|
||||
Real-time updates are available through WebSocket connections:
|
||||
|
||||
```javascript
|
||||
const ws = new WebSocket('wss://api.aitbc.io/ws');
|
||||
const ws = new WebSocket('wss://aitbc.bubuit.net/ws');
|
||||
|
||||
ws.onmessage = (event) => {
|
||||
const data = JSON.parse(event.data);
|
||||
@ -122,7 +122,7 @@ ws.onmessage = (event) => {
|
||||
## OpenAPI Specification
|
||||
|
||||
The complete OpenAPI 3.0 specification is available:
|
||||
- [View in Swagger UI](https://api.aitbc.io/docs)
|
||||
- [View in Swagger UI](https://aitbc.bubuit.net/api/docs)
|
||||
- [Download JSON](openapi.md)
|
||||
|
||||
## Getting Started
|
||||
@ -28,7 +28,7 @@ import { AITBCClient } from '@aitbc/client';
|
||||
// Initialize the client
|
||||
const client = new AITBCClient({
|
||||
apiKey: 'your_api_key_here',
|
||||
baseUrl: 'https://api.aitbc.io'
|
||||
baseUrl: 'https://aitbc.bubuit.net/api'
|
||||
});
|
||||
|
||||
// Create a job
|
||||
@ -49,7 +49,7 @@ console.log('Job created:', job.jobId);
|
||||
### Environment Variables
|
||||
```bash
|
||||
AITBC_API_KEY=your_api_key
|
||||
AITBC_BASE_URL=https://api.aitbc.io
|
||||
AITBC_BASE_URL=https://aitbc.bubuit.net/api
|
||||
AITBC_NETWORK=mainnet
|
||||
```
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ from aitbc import AITBCClient
|
||||
# Initialize the client
|
||||
client = AITBCClient(
|
||||
api_key="your_api_key_here",
|
||||
base_url="https://api.aitbc.io" # or http://localhost:8011 for dev
|
||||
base_url="https://aitbc.bubuit.net/api" # or http://localhost:8011 for dev
|
||||
)
|
||||
|
||||
# Create a job
|
||||
@ -50,7 +50,7 @@ print(f"Result: {result}")
|
||||
### Environment Variables
|
||||
```bash
|
||||
export AITBC_API_KEY="your_api_key"
|
||||
export AITBC_BASE_URL="https://api.aitbc.io"
|
||||
export AITBC_BASE_URL="https://aitbc.bubuit.net/api"
|
||||
export AITBC_NETWORK="mainnet" # or testnet
|
||||
```
|
||||
|
||||
@ -61,7 +61,7 @@ from aitbc import AITBCClient, Config
|
||||
# Using Config object
|
||||
config = Config(
|
||||
api_key="your_api_key",
|
||||
base_url="https://api.aitbc.io",
|
||||
base_url="https://aitbc.bubuit.net/api",
|
||||
timeout=30,
|
||||
retries=3
|
||||
)
|
||||
@ -435,7 +435,7 @@ from aitbc import AITBCClient
|
||||
|
||||
client = AITBCClient(
|
||||
api_key=os.getenv("AITBC_API_KEY"),
|
||||
base_url=os.getenv("AITBC_BASE_URL", "https://api.aitbc.io")
|
||||
base_url=os.getenv("AITBC_BASE_URL", "https://aitbc.bubuit.net/api")
|
||||
)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user