612 lines
15 KiB
JSON
612 lines
15 KiB
JSON
[
|
|
{
|
|
"name": "apikey_create",
|
|
"description": "create api key by user",
|
|
"x-props": {
|
|
"method": "POST",
|
|
"path": "/api/apikey/create",
|
|
"operationId": "postApiApikeyCreate",
|
|
"tag": "apikey",
|
|
"deprecated": false,
|
|
"summary": "create"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"expiredAt": {
|
|
"format": "date-time",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"description"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "apikey_list",
|
|
"description": "get api key list by user",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/apikey/list",
|
|
"operationId": "getApiApikeyList",
|
|
"tag": "apikey",
|
|
"deprecated": false,
|
|
"summary": "list"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "apikey_delete",
|
|
"description": "delete api key by id",
|
|
"x-props": {
|
|
"method": "DELETE",
|
|
"path": "/api/apikey/delete",
|
|
"operationId": "deleteApiApikeyDelete",
|
|
"tag": "apikey",
|
|
"deprecated": false,
|
|
"summary": "delete"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "darmasaba_repos",
|
|
"description": "get list of repositories",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/darmasaba/repos",
|
|
"operationId": "getApiDarmasabaRepos",
|
|
"tag": "darmasaba",
|
|
"deprecated": false,
|
|
"summary": "repos"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "darmasaba_ls",
|
|
"description": "get list of dir in darmasaba",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/darmasaba/ls",
|
|
"operationId": "getApiDarmasabaLs",
|
|
"tag": "darmasaba",
|
|
"deprecated": false,
|
|
"summary": "ls"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "darmasaba_ls_by_dir",
|
|
"description": "get list of files in darmasaba/<dir>",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/darmasaba/ls/{dir}",
|
|
"operationId": "getApiDarmasabaLsByDir",
|
|
"tag": "darmasaba",
|
|
"deprecated": false,
|
|
"summary": "ls"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "darmasaba_file_by_dir_by_file_name",
|
|
"description": "get content of file in darmasaba/<dir>/<file_name>",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/darmasaba/file/{dir}/{file_name}",
|
|
"operationId": "getApiDarmasabaFileByDirByFile_name",
|
|
"tag": "darmasaba",
|
|
"deprecated": false,
|
|
"summary": "file"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "darmasaba_list_pengetahuan_umum",
|
|
"description": "get list of files in darmasaba/pengetahuan-umum",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/darmasaba/list-pengetahuan-umum",
|
|
"operationId": "getApiDarmasabaList-pengetahuan-umum",
|
|
"tag": "darmasaba",
|
|
"deprecated": false,
|
|
"summary": "list-pengetahuan-umum"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "darmasaba_pengetahuan_umum_by_file_name",
|
|
"description": "get content of file in darmasaba/pengetahuan-umum/<file_name>",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/darmasaba/pengetahuan-umum/{file_name}",
|
|
"operationId": "getApiDarmasabaPengetahuan-umumByFile_name",
|
|
"tag": "darmasaba",
|
|
"deprecated": false,
|
|
"summary": "pengetahuan-umum"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "darmasaba_buat_pengaduan",
|
|
"description": "tool untuk membuat pengaduan atau pelaporan warga kepada desa darmasaba",
|
|
"x-props": {
|
|
"method": "POST",
|
|
"path": "/api/darmasaba/buat-pengaduan",
|
|
"operationId": "postApiDarmasabaBuat-pengaduan",
|
|
"tag": "darmasaba",
|
|
"deprecated": false,
|
|
"summary": "buat-pengaduan atau pelaporan"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"jenis_laporan": {
|
|
"minLength": 1,
|
|
"error": "jenis laporan harus diisi",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"minLength": 1,
|
|
"error": "name harus diisi",
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"minLength": 1,
|
|
"error": "phone harus diisi",
|
|
"type": "string"
|
|
},
|
|
"detail": {
|
|
"minLength": 1,
|
|
"error": "detail harus diisi",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"jenis_laporan",
|
|
"name",
|
|
"phone",
|
|
"detail"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "darmasaba_status_pengaduan",
|
|
"description": "melikat status pengaduan dari user",
|
|
"x-props": {
|
|
"method": "POST",
|
|
"path": "/api/darmasaba/status-pengaduan",
|
|
"operationId": "postApiDarmasabaStatus-pengaduan",
|
|
"tag": "darmasaba",
|
|
"deprecated": false,
|
|
"summary": "lihat status pengaduan"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"phone"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "credential_create",
|
|
"description": "create credential",
|
|
"x-props": {
|
|
"method": "POST",
|
|
"path": "/api/credential/create",
|
|
"operationId": "postApiCredentialCreate",
|
|
"tag": "credential",
|
|
"deprecated": false,
|
|
"summary": "create"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "credential_list",
|
|
"description": "get credential list",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/credential/list",
|
|
"operationId": "getApiCredentialList",
|
|
"tag": "credential",
|
|
"deprecated": false,
|
|
"summary": "list"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "credential_rm",
|
|
"description": "delete credential by id",
|
|
"x-props": {
|
|
"method": "DELETE",
|
|
"path": "/api/credential/rm",
|
|
"operationId": "deleteApiCredentialRm",
|
|
"tag": "credential",
|
|
"deprecated": false,
|
|
"summary": "rm"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "user_find",
|
|
"description": "find user",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/user/find",
|
|
"operationId": "getApiUserFind",
|
|
"tag": "user",
|
|
"deprecated": false,
|
|
"summary": "find"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "user_upsert",
|
|
"description": "upsert user",
|
|
"x-props": {
|
|
"method": "POST",
|
|
"path": "/api/user/upsert",
|
|
"operationId": "postApiUserUpsert",
|
|
"tag": "user",
|
|
"deprecated": false,
|
|
"summary": "upsert"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"minLength": 1,
|
|
"error": "name is required",
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"minLength": 1,
|
|
"error": "phone is required",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"phone"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "layanan_list",
|
|
"description": "Returns the list of all available public services.",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/layanan/list",
|
|
"operationId": "getApiLayananList",
|
|
"tag": "layanan",
|
|
"deprecated": false,
|
|
"summary": "List Layanan"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "layanan_create_ktp",
|
|
"description": "Create a new service request for KTP or KK.",
|
|
"x-props": {
|
|
"method": "POST",
|
|
"path": "/api/layanan/create-ktp",
|
|
"operationId": "postApiLayananCreate-ktp",
|
|
"tag": "layanan",
|
|
"deprecated": false,
|
|
"summary": "Create Layanan KTP/KK"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"jenis": {
|
|
"anyOf": [
|
|
{
|
|
"const": "ktp",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "kk",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"nama": {
|
|
"minLength": 3,
|
|
"description": "Nama pemohon layanan",
|
|
"type": "string"
|
|
},
|
|
"deskripsi": {
|
|
"minLength": 5,
|
|
"description": "Deskripsi singkat permohonan layanan",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"jenis",
|
|
"nama",
|
|
"deskripsi"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "layanan_status_ktp",
|
|
"description": "Retrieve the current status of a KTP/KK request by unique ID.",
|
|
"x-props": {
|
|
"method": "POST",
|
|
"path": "/api/layanan/status-ktp",
|
|
"operationId": "postApiLayananStatus-ktp",
|
|
"tag": "layanan",
|
|
"deprecated": false,
|
|
"summary": "Cek Status KTP"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"uniqid": {
|
|
"description": "Unique ID layanan",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"uniqid"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "aduan_create",
|
|
"description": "create aduan",
|
|
"x-props": {
|
|
"method": "POST",
|
|
"path": "/api/aduan/create",
|
|
"operationId": "postApiAduanCreate",
|
|
"tag": "aduan",
|
|
"deprecated": false,
|
|
"summary": "create"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"description"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "aduan_aduan_sampah",
|
|
"description": "tool untuk membuat aduan sampah liar",
|
|
"x-props": {
|
|
"method": "POST",
|
|
"path": "/api/aduan/aduan-sampah",
|
|
"operationId": "postApiAduanAduan-sampah",
|
|
"tag": "aduan",
|
|
"deprecated": false,
|
|
"summary": "aduan sampah"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"judul": {
|
|
"type": "string"
|
|
},
|
|
"deskripsi": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"judul",
|
|
"deskripsi"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "aduan_list_aduan_sampah",
|
|
"description": "tool untuk melihat list aduan sampah liar",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/api/aduan/list-aduan-sampah",
|
|
"operationId": "getApiAduanList-aduan-sampah",
|
|
"tag": "aduan",
|
|
"deprecated": false,
|
|
"summary": "list aduan sampah"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "auth_login",
|
|
"description": "Login with phone; auto-register if not found",
|
|
"x-props": {
|
|
"method": "POST",
|
|
"path": "/auth/login",
|
|
"operationId": "postAuthLogin",
|
|
"tag": "auth",
|
|
"deprecated": false,
|
|
"summary": "login"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"email",
|
|
"password"
|
|
],
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "auth_logout",
|
|
"description": "Logout (clear token cookie)",
|
|
"x-props": {
|
|
"method": "DELETE",
|
|
"path": "/auth/logout",
|
|
"operationId": "deleteAuthLogout",
|
|
"tag": "auth",
|
|
"deprecated": false,
|
|
"summary": "logout"
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
},
|
|
{
|
|
"name": "health",
|
|
"description": "Execute GET /health",
|
|
"x-props": {
|
|
"method": "GET",
|
|
"path": "/health",
|
|
"operationId": "getHealth",
|
|
"deprecated": false
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
}
|
|
] |