Arsitektur Dokumentasi
Peta jalan panduan, SDK integration, dan API reference lengkap yang disiapkan secara terstruktur.
Custom Post Types (CPT)
Mendefinisikan tipe konten kustom selain post standar. Contoh: "Portfolio", "Testimonial", "Produk".
Register Post Type
Mendaftarkan post type baru untuk workspace.
Endpoint
POST /api/post-types
Authentication
Bearer Token (JWT) + X-Workspace-ID header · Role: author+
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | ya | Nama tampilan (contoh: "Portfolio"). |
slug | string | ya | Slug unik (contoh: "portfolio"). |
schema | object | tidak | Skema field kustom dalam format JSON. |
{
"name": "Portfolio",
"slug": "portfolio",
"schema": {
"fields": [
{ "name": "client", "type": "text", "label": "Nama Klien" },
{ "name": "project_url", "type": "url", "label": "URL Proyek" },
{ "name": "completion_date", "type": "date", "label": "Tanggal Selesai" }
]
}
}Response
{
"status": 201,
"message": "Post type registered",
"data": {
"id": "f6a7b8c9-6666-7777-8888-999900001111",
"name": "Portfolio",
"slug": "portfolio",
"schema": { ... }
}
}List Post Types
Mendapatkan daftar semua post type di workspace.
Endpoint
GET /api/post-types
Response
{
"status": 200,
"data": [
{ "id": "...", "name": "Article", "slug": "article" },
{ "id": "...", "name": "Portfolio", "slug": "portfolio" },
{ "id": "...", "name": "Page", "slug": "page" }
]
}Get Post Type
Mendapatkan detail satu post type.
Endpoint
GET /api/post-types/:id
Delete Post Type
Menghapus post type. Post yang menggunakan type ini tidak ikut terhapus.
Endpoint
DELETE /api/post-types/:id
Response
{
"status": 200,
"message": "Post type deleted"
}Lini Masa Peluncuran Fitur
Docker Compose, pengaturan file environment, dan panduan setup lokal telah lengkap dibuat.
Dokumentasi route endpoint publik, otentikasi JWT, dan kontrol hak akses telah selesai disusun.
Mempersiapkan boilerplate untuk Next.js client, manajemen revisi konten, dan optimasi query.