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:
oib
2025-12-28 21:05:53 +01:00
parent cdaf1122c3
commit ff5486fe08
146 changed files with 33301 additions and 219 deletions

View File

@ -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"
```

View File

@ -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:**

View File

@ -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

View File

@ -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