VErsion 1.3.2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# API Endpoints Reference
|
||||
|
||||
**Last Verified:** December 27, 2025
|
||||
**Version:** 1.2.0
|
||||
**Last Verified:** January 3, 2026
|
||||
**Version:** 1.3.2
|
||||
**Base URL:** `/api/v1/`
|
||||
**Documentation:** `/api/docs/` (Swagger) | `/api/redoc/` (ReDoc)
|
||||
|
||||
@@ -88,11 +88,35 @@ All endpoints require authentication unless noted.
|
||||
| POST | `/content/{id}/update_content/` | `ContentViewSet.update_content` | Update with validation |
|
||||
| POST | `/content/{id}/generate_images/` | `ContentViewSet.generate_images` | Generate images |
|
||||
| POST | `/content/{id}/publish_to_wordpress/` | `ContentViewSet.publish_to_wordpress` | Publish to WP |
|
||||
| POST | `/content/{id}/schedule/` | `ContentViewSet.schedule` | Schedule for publishing (v1.3.2) |
|
||||
| POST | `/content/{id}/unschedule/` | `ContentViewSet.unschedule` | Remove from schedule (v1.3.2) |
|
||||
| GET | `/images/` | `ImageViewSet.list` | List images |
|
||||
| POST | `/images/generate_for_content/` | `ImageViewSet.generate_for_content` | Generate images |
|
||||
| POST | `/images/regenerate/` | `ImageViewSet.regenerate` | Regenerate image |
|
||||
| GET | `/taxonomies/` | `TaxonomyViewSet.list` | List taxonomies |
|
||||
|
||||
**Content Query Parameters (v1.3.2):**
|
||||
- `?status__in=draft,review,approved` - Filter by multiple workflow statuses
|
||||
- `?site_status=scheduled` - Filter by publishing status
|
||||
- `?site_id=` - Filter by site
|
||||
|
||||
**Schedule Endpoint Request:**
|
||||
```json
|
||||
POST /api/v1/writer/content/{id}/schedule/
|
||||
{
|
||||
"scheduled_publish_at": "2026-01-15T09:00:00Z"
|
||||
}
|
||||
```
|
||||
|
||||
**Schedule Endpoint Response:**
|
||||
```json
|
||||
{
|
||||
"content_id": 123,
|
||||
"site_status": "scheduled",
|
||||
"scheduled_publish_at": "2026-01-15T09:00:00Z"
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Billing Endpoints (`/api/v1/billing/`)
|
||||
@@ -125,6 +149,31 @@ All endpoints require authentication unless noted.
|
||||
| POST | `/site_sync/` | Site-level sync | Sync by site ID |
|
||||
| POST | `/webhook/wordpress/` | WordPress webhook | Receive WP updates |
|
||||
|
||||
### Publishing Settings Endpoints (v1.3.2)
|
||||
|
||||
| Method | Path | Handler | Purpose |
|
||||
|--------|------|---------|---------|
|
||||
| GET | `/sites/{site_id}/publishing-settings/` | `PublishingSettingsViewSet.retrieve` | Get publishing settings |
|
||||
| PUT | `/sites/{site_id}/publishing-settings/` | `PublishingSettingsViewSet.update` | Update settings (full) |
|
||||
| PATCH | `/sites/{site_id}/publishing-settings/` | `PublishingSettingsViewSet.partial_update` | Update settings (partial) |
|
||||
|
||||
**Publishing Settings Response:**
|
||||
```json
|
||||
{
|
||||
"id": 1,
|
||||
"site": 5,
|
||||
"auto_approval_enabled": true,
|
||||
"auto_publish_enabled": true,
|
||||
"daily_publish_limit": 3,
|
||||
"weekly_publish_limit": 15,
|
||||
"monthly_publish_limit": 50,
|
||||
"publish_days": ["mon", "tue", "wed", "thu", "fri"],
|
||||
"publish_time_slots": ["09:00", "14:00", "18:00"],
|
||||
"created_at": "2026-01-03T10:00:00Z",
|
||||
"updated_at": "2026-01-03T10:00:00Z"
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## System Endpoints (`/api/v1/system/`)
|
||||
|
||||
Reference in New Issue
Block a user