{
    "openapi": "3.0.3",
    "info": {
        "title": "LIST acc_batasan API",
        "version": "2",
        "description": "Dokumentasi dinamis command Api_post_query."
    },
    "servers": [
        {
            "url": "https://rnd.microdata.co.id/datasoft-api/app"
        }
    ],
    "tags": [
        {
            "name": "Akuntansi"
        }
    ],
    "paths": {
        "/Api_post_query": {
            "post": {
                "tags": [
                    "Akuntansi"
                ],
                "summary": "LIST acc_batasan",
                "description": "Generated by API Designer [TABLE:acc_batasan]",
                "operationId": "acc_batasan_list",
                "security": [
                    {
                        "DsoApiKey": [],
                        "BasicAuth": []
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ACC_BATASAN_LISTRequest"
                            },
                            "examples": {
                                "acc_batasan_list": {
                                    "summary": "LIST acc_batasan",
                                    "value": {
                                        "username": "{{TENANT_USERNAME}}",
                                        "password": "{{TENANT_PASSWORD}}",
                                        "command": "ACC_BATASAN_LIST",
                                        "params": {
                                            "KEYWORD": "Kas"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Command berhasil",
                        "content": {
                            "application/json": {
                                "example": {
                                    "method": "post",
                                    "mode": "command",
                                    "message": "success",
                                    "data": {
                                        "success": true,
                                        "command": "ACC_BATASAN_LIST",
                                        "version": 2,
                                        "request_id": "",
                                        "database": "dsoidcom_domain_unit",
                                        "transaction": "PARTIAL",
                                        "execution_time_ms": 12,
                                        "data": {
                                            "list_acc_batasan": {
                                                "affected_rows": 0,
                                                "insert_id": 0,
                                                "rows": [
                                                    {
                                                        "FIELD": "value"
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validasi atau eksekusi gagal",
                        "content": {
                            "application/json": {
                                "example": {
                                    "method": "post",
                                    "mode": "command",
                                    "message": "failed",
                                    "data": {
                                        "success": false,
                                        "command": "ACC_BATASAN_LIST",
                                        "request_id": "",
                                        "error": {
                                            "code": "PARAMETER_INVALID",
                                            "message": "Parameter wajib belum diisi."
                                        },
                                        "errors": [
                                            "Parameter wajib belum diisi."
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "DsoApiKey": {
                "type": "apiKey",
                "in": "header",
                "name": "DSO-API-KEY"
            },
            "BasicAuth": {
                "type": "http",
                "scheme": "basic"
            }
        },
        "schemas": {
            "ACC_BATASAN_LISTParams": {
                "type": "object",
                "properties": {
                    "KEYWORD": {
                        "type": "string",
                        "example": "Kas",
                        "maxLength": 100
                    }
                }
            },
            "ACC_BATASAN_LISTRequest": {
                "type": "object",
                "required": [
                    "username",
                    "password",
                    "command",
                    "params"
                ],
                "properties": {
                    "username": {
                        "type": "string",
                        "example": "system@unit.domain"
                    },
                    "password": {
                        "type": "string",
                        "format": "password",
                        "example": "{{TENANT_PASSWORD}}"
                    },
                    "command": {
                        "type": "string",
                        "enum": [
                            "ACC_BATASAN_LIST"
                        ]
                    },
                    "params": {
                        "$ref": "#/components/schemas/ACC_BATASAN_LISTParams"
                    }
                }
            }
        }
    }
}