{
    "openapi": "3.1.2",
    "info": {
        "title": "siDenok",
        "version": "1.0.0",
        "description": "API publik (hanya baca) untuk data yang tampil di website: Proyek (termasuk tag Bareto-Kiwari-Pageto)\ndan Sayembara. Tanpa token.\n\n- Data yang keluar sama dengan yang tampil di website (aktif\/terbit, tidak terhapus).\n- Daftar memakai pagination: `?page=` dan `?per_page=` (maks. 50). Respons berisi `data`, `links`, `meta`.\n- Batas 60 request per menit per IP; lebih dari itu dijawab `429`.\n- Error selalu JSON: `404` data tidak ditemukan, `422` parameter tidak valid."
    },
    "servers": [
        {
            "url": "https:\/\/sidenok.citalintas.com\/api\/v1\/public"
        }
    ],
    "paths": {
        "\/proyek": {
            "get": {
                "operationId": "public.proyek.index",
                "description": "Urutan sama dengan Katalog Proyek di website.",
                "summary": "Daftar proyek",
                "tags": [
                    "Proyek",
                    "Project"
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Cari nama atau lokasi.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "program",
                        "in": "query",
                        "description": "Slug program, lihat endpoint filter.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 170
                        }
                    },
                    {
                        "name": "kategori",
                        "in": "query",
                        "description": "Slug kategori, lihat endpoint filter.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 170
                        }
                    },
                    {
                        "name": "tag",
                        "in": "query",
                        "description": "Slug tag, lihat endpoint filter. Mis. bandung-bareto, bandung-kiwari, bandung-pageto.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 170
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "perencanaan",
                                "berjalan",
                                "selesai",
                                null
                            ]
                        }
                    },
                    {
                        "name": "tahun",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1900,
                            "maximum": 2100
                        }
                    },
                    {
                        "name": "kelengkapan",
                        "in": "query",
                        "description": "Slug kategori dokumen kelengkapan, lihat endpoint filter. Mis. desain, ded, foto-existing.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "desain",
                                "ded",
                                "foto-existing",
                                null
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `ProjectResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#\/components\/schemas\/ProjectResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "tags",
                                                            "cover"
                                                        ]
                                                    }
                                                ]
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    }
                }
            }
        },
        "\/proyek\/peta": {
            "get": {
                "operationId": "public.proyek.peta",
                "description": "Semua proyek bertitik yang cocok dengan filter (tanpa pagination), seperti Peta Sebaran Proyek di website.\n`meta.unlocated_count` = jumlah proyek yang cocok tetapi belum punya titik.",
                "summary": "Titik peta proyek",
                "tags": [
                    "Proyek",
                    "Project"
                ],
                "parameters": [
                    {
                        "name": "program",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 170
                        }
                    },
                    {
                        "name": "kategori",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 170
                        }
                    },
                    {
                        "name": "tag",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 170
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "perencanaan",
                                "berjalan",
                                "selesai",
                                null
                            ]
                        }
                    },
                    {
                        "name": "tahun",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1900,
                            "maximum": 2100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ProjectMapPointResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#\/components\/schemas\/ProjectMapPointResource"
                                            }
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "unlocated_count": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "unlocated_count"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    }
                }
            }
        },
        "\/proyek\/filter": {
            "get": {
                "operationId": "public.proyek.filter",
                "description": "Nilai yang bisa dipakai di parameter filter daftar & peta; hanya dari proyek yang tampil.",
                "summary": "Pilihan filter proyek",
                "tags": [
                    "Proyek",
                    "Project"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "programs": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "slug": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "slug",
                                                            "name"
                                                        ]
                                                    }
                                                },
                                                "categories": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "slug": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "slug",
                                                            "name"
                                                        ]
                                                    }
                                                },
                                                "tags": {
                                                    "type": "array",
                                                    "description": "in_menu: tampil sebagai sub menu Bareto-Kiwari-Pageto di website.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "slug": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "in_menu": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "slug",
                                                            "name",
                                                            "in_menu"
                                                        ]
                                                    }
                                                },
                                                "statuses": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "value": {
                                                                "type": "string"
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "value",
                                                            "label"
                                                        ]
                                                    }
                                                },
                                                "years": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "availability": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "value": {
                                                                "type": "string"
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "value",
                                                            "label"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "programs",
                                                "categories",
                                                "tags",
                                                "statuses",
                                                "years",
                                                "availability"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/proyek\/{slug}": {
            "get": {
                "operationId": "public.proyek.show",
                "summary": "Detail proyek",
                "tags": [
                    "Proyek",
                    "Project"
                ],
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ProjectDetailResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#\/components\/schemas\/ProjectDetailResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "tags",
                                                        "cover"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/ringkasan": {
            "get": {
                "operationId": "public.ringkasan.index",
                "description": "Isi sama dengan endpoint ringkasan per modul, dalam satu respons.",
                "summary": "Ringkasan semua modul",
                "tags": [
                    "Ringkasan",
                    "Summary"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "proyek": {
                                                    "type": "object",
                                                    "properties": {
                                                        "total": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "with_coordinates": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "by_status": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "value": {
                                                                        "type": "string"
                                                                    },
                                                                    "label": {
                                                                        "type": "string"
                                                                    },
                                                                    "total": {
                                                                        "type": "integer"
                                                                    }
                                                                },
                                                                "required": [
                                                                    "value",
                                                                    "label",
                                                                    "total"
                                                                ]
                                                            }
                                                        },
                                                        "by_year": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "year": {
                                                                        "type": "integer"
                                                                    },
                                                                    "total": {
                                                                        "type": "integer"
                                                                    }
                                                                },
                                                                "required": [
                                                                    "year",
                                                                    "total"
                                                                ]
                                                            }
                                                        },
                                                        "by_program": {
                                                            "type": "string"
                                                        },
                                                        "without_program": {
                                                            "type": "integer",
                                                            "description": "Proyek tampil yang programnya kosong (tidak masuk by_program).",
                                                            "minimum": 0
                                                        },
                                                        "by_category": {
                                                            "type": "string"
                                                        },
                                                        "by_tag": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "slug": {
                                                                        "type": "string"
                                                                    },
                                                                    "name": {
                                                                        "type": "string"
                                                                    },
                                                                    "in_menu": {
                                                                        "type": "boolean",
                                                                        "description": "Tampil di menu Bareto-Kiwari-Pageto."
                                                                    },
                                                                    "total": {
                                                                        "type": "integer"
                                                                    }
                                                                },
                                                                "required": [
                                                                    "slug",
                                                                    "name",
                                                                    "in_menu",
                                                                    "total"
                                                                ]
                                                            }
                                                        }
                                                    },
                                                    "required": [
                                                        "total",
                                                        "with_coordinates",
                                                        "by_status",
                                                        "by_year",
                                                        "by_program",
                                                        "without_program",
                                                        "by_category",
                                                        "by_tag"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "proyek"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/ringkasan\/proyek": {
            "get": {
                "operationId": "public.ringkasan.proyek",
                "description": "Jumlah proyek yang tampil di website: total, bertitik, per status, tahun, program, kategori, dan tag.\nProgram & kategori tanpa proyek tampil tidak ikut. Tag: hanya tag aktif; tag menu Bareto-Kiwari-Pageto\nselalu ikut (termasuk yang 0), tag lain hanya yang dipakai.",
                "summary": "Ringkasan proyek",
                "tags": [
                    "Ringkasan",
                    "Summary"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "total": {
                                                    "type": "integer",
                                                    "minimum": 0
                                                },
                                                "with_coordinates": {
                                                    "type": "integer",
                                                    "minimum": 0
                                                },
                                                "by_status": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "value": {
                                                                "type": "string"
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "total": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "required": [
                                                            "value",
                                                            "label",
                                                            "total"
                                                        ]
                                                    }
                                                },
                                                "by_year": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "year": {
                                                                "type": "integer"
                                                            },
                                                            "total": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "required": [
                                                            "year",
                                                            "total"
                                                        ]
                                                    }
                                                },
                                                "by_program": {
                                                    "type": "string"
                                                },
                                                "without_program": {
                                                    "type": "integer",
                                                    "description": "Proyek tampil yang programnya kosong (tidak masuk by_program).",
                                                    "minimum": 0
                                                },
                                                "by_category": {
                                                    "type": "string"
                                                },
                                                "by_tag": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "slug": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "in_menu": {
                                                                "type": "boolean",
                                                                "description": "Tampil di menu Bareto-Kiwari-Pageto."
                                                            },
                                                            "total": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "required": [
                                                            "slug",
                                                            "name",
                                                            "in_menu",
                                                            "total"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "total",
                                                "with_coordinates",
                                                "by_status",
                                                "by_year",
                                                "by_program",
                                                "without_program",
                                                "by_category",
                                                "by_tag"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/sayembara": {
            "get": {
                "operationId": "public.sayembara.index",
                "description": "Terbaru (tanggal mulai) di atas.",
                "summary": "Daftar sayembara",
                "tags": [
                    "Sayembara"
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Cari nama.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "berjalan",
                                "selesai",
                                null
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `SayembaraResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#\/components\/schemas\/SayembaraResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "cover"
                                                        ]
                                                    }
                                                ]
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    }
                }
            }
        },
        "\/sayembara\/{slug}": {
            "get": {
                "operationId": "public.sayembara.show",
                "description": "Lokasi beserta juaranya (urut peringkat), nama tim, dan nama anggota.",
                "summary": "Detail sayembara",
                "tags": [
                    "Sayembara"
                ],
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`SayembaraDetailResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#\/components\/schemas\/SayembaraDetailResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "cover"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "FileResource": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "file_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "extension": {
                        "type": "string"
                    },
                    "mime_type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "size": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Ukuran dalam byte."
                    },
                    "caption": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "url": {
                        "type": "string"
                    }
                },
                "required": [
                    "title",
                    "file_name",
                    "extension",
                    "mime_type",
                    "size",
                    "caption",
                    "url"
                ],
                "title": "FileResource"
            },
            "ImageResource": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "description": "URL gambar asli."
                    },
                    "thumbnail_url": {
                        "type": "string",
                        "description": "Thumbnail; sama dengan url jika tidak ada thumbnail."
                    },
                    "alt": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "caption": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "width": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "height": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "is_cover": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "url",
                    "thumbnail_url",
                    "alt",
                    "caption",
                    "width",
                    "height",
                    "is_cover"
                ],
                "title": "ImageResource"
            },
            "ProjectDetailResource": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "excerpt": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "description": "perencanaan, berjalan, selesai"
                    },
                    "status_label": {
                        "type": "string"
                    },
                    "program": {
                        "type": "object",
                        "properties": {
                            "slug": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "slug",
                            "name"
                        ]
                    },
                    "category": {
                        "type": "object",
                        "properties": {
                            "slug": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "slug",
                            "name"
                        ]
                    },
                    "opds": {
                        "type": "array",
                        "description": "OPD pengampu (bisa lebih dari satu).",
                        "items": {
                            "type": "object",
                            "properties": {
                                "code": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "year": {
                                    "type": "integer"
                                }
                            },
                            "required": [
                                "code",
                                "name",
                                "year"
                            ]
                        }
                    },
                    "tags": {
                        "type": "array",
                        "description": "Tag aktif; in_menu = tampil di menu Bareto-Kiwari-Pageto.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "slug": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "in_menu": {
                                    "type": "boolean"
                                }
                            },
                            "required": [
                                "slug",
                                "name",
                                "in_menu"
                            ]
                        }
                    },
                    "location": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "coordinates": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "null jika project belum punya titik lokasi.",
                        "properties": {
                            "lat": {
                                "type": "number"
                            },
                            "lng": {
                                "type": "number"
                            }
                        },
                        "required": [
                            "lat",
                            "lng"
                        ]
                    },
                    "year": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "availability": {
                        "type": "array",
                        "description": "Kelengkapan per kategori dokumen kelengkapan (tersedia = ada dokumennya atau dicentang manual).",
                        "items": {
                            "type": "object",
                            "properties": {
                                "slug": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "available": {
                                    "type": "boolean"
                                }
                            },
                            "required": [
                                "slug",
                                "name",
                                "available"
                            ]
                        }
                    },
                    "cover": {
                        "$ref": "#\/components\/schemas\/ImageResource"
                    },
                    "url": {
                        "type": "string",
                        "description": "Halaman project di website."
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "description": {
                        "type": "string",
                        "description": "HTML, disanitasi ulang seperti di website."
                    },
                    "gallery": {
                        "type": "array",
                        "items": {
                            "$ref": "#\/components\/schemas\/ImageResource"
                        }
                    },
                    "documents": {
                        "type": "array",
                        "items": {
                            "$ref": "#\/components\/schemas\/ProjectDocumentResource"
                        }
                    }
                },
                "required": [
                    "slug",
                    "name",
                    "excerpt",
                    "status",
                    "status_label",
                    "location",
                    "coordinates",
                    "year",
                    "availability",
                    "url",
                    "updated_at",
                    "description",
                    "gallery",
                    "documents"
                ],
                "title": "ProjectDetailResource"
            },
            "ProjectDocumentResource": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "file_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "extension": {
                        "type": "string"
                    },
                    "mime_type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "size": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Ukuran dalam byte."
                    },
                    "caption": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "url": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string",
                        "description": "Jenis file: document, design, archive."
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Kategori dokumen; null = tanpa kategori."
                    }
                },
                "required": [
                    "title",
                    "file_name",
                    "extension",
                    "mime_type",
                    "size",
                    "caption",
                    "url",
                    "type",
                    "category"
                ],
                "title": "ProjectDocumentResource"
            },
            "ProjectMapPointResource": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "status_label": {
                        "type": "string"
                    },
                    "color": {
                        "description": "Warna titik per status (hex), sama dengan peta website.",
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "string",
                                "enum": [
                                    "#6b7280"
                                ]
                            }
                        ]
                    },
                    "location": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "year": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "coordinates": {
                        "type": "object",
                        "properties": {
                            "lat": {
                                "type": "number"
                            },
                            "lng": {
                                "type": "number"
                            }
                        },
                        "required": [
                            "lat",
                            "lng"
                        ]
                    },
                    "url": {
                        "type": "string"
                    }
                },
                "required": [
                    "slug",
                    "name",
                    "status",
                    "status_label",
                    "color",
                    "location",
                    "year",
                    "coordinates",
                    "url"
                ],
                "title": "ProjectMapPointResource"
            },
            "ProjectResource": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "excerpt": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "description": "perencanaan, berjalan, selesai"
                    },
                    "status_label": {
                        "type": "string"
                    },
                    "program": {
                        "type": "object",
                        "properties": {
                            "slug": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "slug",
                            "name"
                        ]
                    },
                    "category": {
                        "type": "object",
                        "properties": {
                            "slug": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "slug",
                            "name"
                        ]
                    },
                    "opds": {
                        "type": "array",
                        "description": "OPD pengampu (bisa lebih dari satu).",
                        "items": {
                            "type": "object",
                            "properties": {
                                "code": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "year": {
                                    "type": "integer"
                                }
                            },
                            "required": [
                                "code",
                                "name",
                                "year"
                            ]
                        }
                    },
                    "tags": {
                        "type": "array",
                        "description": "Tag aktif; in_menu = tampil di menu Bareto-Kiwari-Pageto.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "slug": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "in_menu": {
                                    "type": "boolean"
                                }
                            },
                            "required": [
                                "slug",
                                "name",
                                "in_menu"
                            ]
                        }
                    },
                    "location": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "coordinates": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "null jika project belum punya titik lokasi.",
                        "properties": {
                            "lat": {
                                "type": "number"
                            },
                            "lng": {
                                "type": "number"
                            }
                        },
                        "required": [
                            "lat",
                            "lng"
                        ]
                    },
                    "year": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "availability": {
                        "type": "array",
                        "description": "Kelengkapan per kategori dokumen kelengkapan (tersedia = ada dokumennya atau dicentang manual).",
                        "items": {
                            "type": "object",
                            "properties": {
                                "slug": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "available": {
                                    "type": "boolean"
                                }
                            },
                            "required": [
                                "slug",
                                "name",
                                "available"
                            ]
                        }
                    },
                    "cover": {
                        "$ref": "#\/components\/schemas\/ImageResource"
                    },
                    "url": {
                        "type": "string",
                        "description": "Halaman project di website."
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "slug",
                    "name",
                    "excerpt",
                    "status",
                    "status_label",
                    "location",
                    "coordinates",
                    "year",
                    "availability",
                    "url",
                    "updated_at"
                ],
                "title": "ProjectResource"
            },
            "SayembaraDetailResource": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "excerpt": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "description": "berjalan, selesai"
                    },
                    "status_label": {
                        "type": "string"
                    },
                    "start_date": {
                        "type": "string"
                    },
                    "end_date": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "null = belum ditentukan \/ masih berjalan."
                    },
                    "locations_count": {
                        "type": "integer"
                    },
                    "cover": {
                        "$ref": "#\/components\/schemas\/ImageResource"
                    },
                    "url": {
                        "type": "string"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Teks biasa (bukan HTML)."
                    },
                    "images": {
                        "type": "array",
                        "items": {
                            "$ref": "#\/components\/schemas\/ImageResource"
                        }
                    },
                    "documents": {
                        "type": "array",
                        "items": {
                            "$ref": "#\/components\/schemas\/FileResource"
                        }
                    },
                    "locations": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "description": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "coordinates": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "properties": {
                                        "lat": {
                                            "type": "number"
                                        },
                                        "lng": {
                                            "type": "number"
                                        }
                                    },
                                    "required": [
                                        "lat",
                                        "lng"
                                    ]
                                },
                                "winners": {
                                    "type": "array",
                                    "description": "Urut peringkat; kosong jika pemenang belum diumumkan.",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "rank_number": {
                                                "type": [
                                                    "integer",
                                                    "null"
                                                ]
                                            },
                                            "rank": {
                                                "type": "string",
                                                "description": "Label peringkat: label bebas jika diisi, selain itu \"Juara {angka}\"."
                                            },
                                            "team_name": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "members": {
                                                "type": "array",
                                                "items": {
                                                    "type": "object",
                                                    "properties": {
                                                        "name": {
                                                            "type": "string"
                                                        },
                                                        "is_leader": {
                                                            "type": "boolean"
                                                        }
                                                    },
                                                    "required": [
                                                        "name",
                                                        "is_leader"
                                                    ]
                                                }
                                            },
                                            "images": {
                                                "type": "array",
                                                "items": {
                                                    "$ref": "#\/components\/schemas\/ImageResource"
                                                }
                                            },
                                            "documents": {
                                                "type": "array",
                                                "items": {
                                                    "$ref": "#\/components\/schemas\/FileResource"
                                                }
                                            }
                                        },
                                        "required": [
                                            "rank_number",
                                            "rank",
                                            "team_name",
                                            "members",
                                            "images",
                                            "documents"
                                        ]
                                    }
                                }
                            },
                            "required": [
                                "name",
                                "address",
                                "description",
                                "coordinates",
                                "winners"
                            ]
                        }
                    }
                },
                "required": [
                    "slug",
                    "name",
                    "excerpt",
                    "status",
                    "status_label",
                    "start_date",
                    "end_date",
                    "url",
                    "updated_at",
                    "description",
                    "images",
                    "documents",
                    "locations"
                ],
                "title": "SayembaraDetailResource"
            },
            "SayembaraResource": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "excerpt": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "description": "berjalan, selesai"
                    },
                    "status_label": {
                        "type": "string"
                    },
                    "start_date": {
                        "type": "string"
                    },
                    "end_date": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "null = belum ditentukan \/ masih berjalan."
                    },
                    "locations_count": {
                        "type": "integer"
                    },
                    "cover": {
                        "$ref": "#\/components\/schemas\/ImageResource"
                    },
                    "url": {
                        "type": "string"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "slug",
                    "name",
                    "excerpt",
                    "status",
                    "status_label",
                    "start_date",
                    "end_date",
                    "url",
                    "updated_at"
                ],
                "title": "SayembaraResource"
            }
        },
        "responses": {
            "ValidationException": {
                "description": "Validation error",
                "content": {
                    "application\/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Errors overview."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            }
        }
    }
}