sipd-master/docs/swagger.json
2025-09-16 08:26:35 +07:00

3417 lines
117 KiB
JSON

{
"swagger": "2.0",
"info": {
"description": "SIPD Service Master Rest API.",
"title": "SIPD Service Master",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"name": "API Support",
"email": "lifelinejar@mail.com"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "1.0"
},
"paths": {
"/bidangurusan": {
"get": {
"description": "get lists of bidang urusan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Bidang Urusan"
],
"summary": "get lists of bidang urusan",
"parameters": [
{
"type": "integer",
"description": "Halaman yang ditampilkan",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "Jumlah data per halaman, maksimal 50 data",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Key value pencarian ([kode_bidang_urusan,nama_bidang_urusan,tahun,daerah_khusus,jenis_pemda]). Contoh: kode_bidang_urusan.1.01 -\u003e (akan menampilkan data dengan kode bidang urusan = '1.01')",
"name": "filter",
"in": "query"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.MstBidangUrusanModel"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/bidangurusan/{id}/{tahun}": {
"get": {
"description": "get detail of bidang urusan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Bidang Urusan"
],
"summary": "get detail of bidang urusan",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih berdasarkan id bidang urusan",
"name": "id",
"in": "path"
},
{
"type": "integer",
"description": "data yang dipilih berdasarkan tahun",
"name": "tahun",
"in": "path"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/models.MstBidangUrusanDetilModel"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/daerah": {
"get": {
"description": "get lists of daerah",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Daerah"
],
"summary": "get lists of daerah",
"parameters": [
{
"type": "integer",
"description": "Halaman yang ditampilkan",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "Jumlah data per halaman, maksimal 50 data",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Key value pencarian ([kode_daerah,nama_daerah,jns_pemda]). Contoh: kode_ddn.11 -\u003e (akan menampilkan data dengan kode ddn = '11')",
"name": "filter",
"in": "query"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.MstDaerahModel"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
},
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "create new daerah.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Daerah"
],
"summary": "create new daerah",
"parameters": [
{
"description": "Payload",
"name": "payload",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.MstDaerahPayloadModel"
}
}
],
"responses": {
"200": {
"description": "Create success",
"schema": {
"type": "boolean"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.DataValidationError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/daerah/{id}": {
"get": {
"description": "get detail of daerah",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Daerah"
],
"summary": "get detail of daerah",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih berdasarkan id daerah",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/models.MstDaerahDetilModel"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
},
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "update daerah.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Daerah"
],
"summary": "update daerah",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih untuk diubah berdasarkan id daerah",
"name": "id",
"in": "path"
},
{
"description": "Payload",
"name": "payload",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.MstDaerahPayloadModel"
}
}
],
"responses": {
"200": {
"description": "Update success",
"schema": {
"type": "boolean"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.DataValidationError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
},
"delete": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "delete daerah.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Daerah"
],
"summary": "delete daerah",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih untuk dihapus berdasarkan id daerah",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "Delete success",
"schema": {
"type": "boolean"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.DataValidationError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/kecamatan": {
"get": {
"description": "get lists of kecamatan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Kecamatan"
],
"summary": "get lists of kecamatan",
"parameters": [
{
"type": "integer",
"description": "Halaman yang ditampilkan",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "Jumlah data per halaman, maksimal 50 data",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Key value pencarian ([kode_kecamatan,nama_kecamatan]). Contoh: kode_kecamatan.11.01.01 -\u003e (akan menampilkan data dengan kode kecamatan = '11.01.01')",
"name": "filter",
"in": "query"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.MstKecamatanModel"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/kecamatan/{id}": {
"get": {
"description": "get detail of kecamatan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Kecamatan"
],
"summary": "get detail of kecamatan",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih berdasarkan id kecamatan",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/models.MstKecamatanDetilModel"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/kegiatan": {
"get": {
"description": "get lists of Kegiatan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Kegiatan"
],
"summary": "get lists of Kegiatan",
"parameters": [
{
"type": "integer",
"description": "Halaman yang ditampilkan",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "Jumlah data per halaman, maksimal 50 data",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Key value pencarian ([kode_kegiatan,nama_kegiatan,tahun,daerah_khusus,jenis_pemda]). Contoh: kode_kegiatan.1.01.02.1.01 -\u003e (akan menampilkan data dengan kode kegiatan = '1.01.02.1.01')",
"name": "filter",
"in": "query"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.MstKegiatanModel"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/kegiatan/{id}/{tahun}": {
"get": {
"description": "get detail of Kegiatan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Kegiatan"
],
"summary": "get detail of Kegiatan",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih berdasarkan id kegiatan",
"name": "id",
"in": "path"
},
{
"type": "integer",
"description": "data yang dipilih berdasarkan tahun",
"name": "tahun",
"in": "path"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/models.MstKegiatanDetilModel"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/kelurahan": {
"get": {
"description": "get lists of kelurahan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Kelurahan"
],
"summary": "get lists of kelurahan",
"parameters": [
{
"type": "integer",
"description": "Halaman yang ditampilkan",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "Jumlah data per halaman, maksimal 50 data",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Key value pencarian ([kode_kecamatan,nama_kecamatan,kode_kelurahan,nama_kelurahan]). Contoh: kode_kelurahan.11.01.01.2001 -\u003e (akan menampilkan data dengan kode kelurahan = '11.01.01.2001')",
"name": "filter",
"in": "query"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.MstKelurahanModel"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/kelurahan/{id}": {
"get": {
"description": "get detail of kelurahan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Kelurahan"
],
"summary": "get detail of kelurahan",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih berdasarkan id kelurahan",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/models.MstKelurahanDetilModel"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/program": {
"get": {
"description": "get lists of Program",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Program"
],
"summary": "get lists of Program",
"parameters": [
{
"type": "integer",
"description": "Halaman yang ditampilkan",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "Jumlah data per halaman, maksimal 50 data",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Key value pencarian ([kode_program,nama_program,tahun,daerah_khusus,jenis_pemda]). Contoh: kode_program.1.01.02 -\u003e (akan menampilkan data dengan kode program = '1.01.02')",
"name": "filter",
"in": "query"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.MstProgramModel"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/program/{id}/{tahun}": {
"get": {
"description": "get detail of Program",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Program"
],
"summary": "get detail of Program",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih berdasarkan id program",
"name": "id",
"in": "path"
},
{
"type": "integer",
"description": "data yang dipilih berdasarkan tahun",
"name": "tahun",
"in": "path"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/models.MstProgramDetilModel"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/subkegiatan": {
"get": {
"description": "get lists of Sub Kegiatan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Sub Kegiatan"
],
"summary": "get lists of Sub Kegiatan",
"parameters": [
{
"type": "integer",
"description": "Halaman yang ditampilkan",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "Jumlah data per halaman, maksimal 50 data",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Key value pencarian ([kode_sub_kegiatan,nama_sub_kegiatan,tahun,daerah_khusus,jenis_pemda]). Contoh: kode_sub_kegiatan.1.01.02.1.01.01 -\u003e (akan menampilkan data dengan kode sub kegiatan = '1.01.02.1.01.01')",
"name": "filter",
"in": "query"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.MstSubKegiatanModel"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/subkegiatan/{id}/{tahun}": {
"get": {
"description": "get detail of Sub Kegiatan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Sub Kegiatan"
],
"summary": "get detail of Sub Kegiatan",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih berdasarkan id sub kegiatan",
"name": "id",
"in": "path"
},
{
"type": "integer",
"description": "data yang dipilih berdasarkan tahun",
"name": "tahun",
"in": "path"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/models.MstSubKegiatanDetilModel"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/urusan": {
"get": {
"description": "get lists of urusan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Urusan"
],
"summary": "get lists of urusan",
"parameters": [
{
"type": "integer",
"description": "Halaman yang ditampilkan",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "Jumlah data per halaman, maksimal 50 data",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Key value pencarian ([kode_urusan,nama_urusan,tahun,daerah_khusus,jenis_pemda]). Contoh: kode_urusan.1 -\u003e (akan menampilkan data dengan kode urusan = '1')",
"name": "filter",
"in": "query"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.MstUrusanModel"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
},
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "create new urusan.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Urusan"
],
"summary": "create new urusan",
"parameters": [
{
"description": "Payload",
"name": "payload",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.MstUrusanPayloadModel"
}
}
],
"responses": {
"200": {
"description": "Create success",
"schema": {
"type": "boolean"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.DataValidationError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/urusan/{id}": {
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "update urusan.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Urusan"
],
"summary": "update urusan",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih untuk diubah berdasarkan id urusan",
"name": "id",
"in": "path"
},
{
"description": "Payload",
"name": "payload",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.MstUrusanUpdatePayloadModel"
}
}
],
"responses": {
"200": {
"description": "Update success",
"schema": {
"type": "boolean"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.DataValidationError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
},
"delete": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "delete urusan.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Urusan"
],
"summary": "delete urusan",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih untuk dihapus berdasarkan id urusan",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "Delete success",
"schema": {
"type": "boolean"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.DataValidationError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/urusan/{id}/disable": {
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "update urusan disable status.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Urusan"
],
"summary": "update urusan disable status",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih untuk diubah berdasarkan id urusan",
"name": "id",
"in": "path"
},
{
"type": "boolean",
"description": "status disable yang diinginkan",
"name": "disable",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Update success",
"schema": {
"type": "boolean"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.DataValidationError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/urusan/{id}/lock": {
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "update urusan locked status.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Urusan"
],
"summary": "update urusan locked status",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih untuk diubah berdasarkan id urusan",
"name": "id",
"in": "path"
},
{
"type": "boolean",
"description": "status locked yang diinginkan",
"name": "locked",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Update success",
"schema": {
"type": "boolean"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.DataValidationError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
},
"/urusan/{id}/{tahun}": {
"get": {
"description": "get detail of urusan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Master Urusan"
],
"summary": "get detail of urusan",
"parameters": [
{
"type": "integer",
"description": "data yang dipilih berdasarkan id urusan",
"name": "id",
"in": "path"
},
{
"type": "integer",
"description": "data yang dipilih berdasarkan tahun",
"name": "tahun",
"in": "path"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/models.MstUrusanDetilModel"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
},
"422": {
"description": "Data validation failed",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.RequestError"
}
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/utils.RequestError"
}
}
}
}
}
},
"definitions": {
"models.MstBidangUrusanDetilModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"created_by": {
"type": "integer",
"example": 1
},
"daerah_khusus": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
440,
589
]
},
"deleted_at": {
"type": "string",
"example": "0001-01-01 00:00:00"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"disable": {
"type": "boolean",
"example": false
},
"id_bidang_urusan": {
"type": "integer",
"example": 55
},
"id_urusan": {
"type": "integer",
"example": 11
},
"jenis_pemda": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
1,
2,
3
]
},
"kode_bidang_urusan": {
"type": "string",
"example": "1.01"
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_bidang_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN BIDANG PENDIDIKAN"
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
},
"updated_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"updated_by": {
"type": "integer",
"example": 1
}
}
},
"models.MstBidangUrusanModel": {
"type": "object",
"properties": {
"disable": {
"type": "boolean",
"example": false
},
"id_bidang_urusan": {
"type": "integer",
"example": 55
},
"id_urusan": {
"type": "integer",
"example": 11
},
"kode_bidang_urusan": {
"type": "string",
"example": "1.01"
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_bidang_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN BIDANG PENDIDIKAN"
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
}
}
},
"models.MstDaerahDetilModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-11T12:34:56Z"
},
"created_by": {
"type": "integer",
"example": 1
},
"daerah_khusus": {
"description": "daerah khusus adalah daerah khusus",
"type": "boolean",
"example": false
},
"deleted_at": {
"type": "string",
"example": "0001-01-01T00:00:00Z"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"id_daerah": {
"type": "integer",
"example": 119
},
"id_prov": {
"type": "integer",
"example": 116
},
"jns_pemda": {
"type": "integer",
"example": 2
},
"jns_pemda_alias": {
"type": "string",
"example": "Kabupaten"
},
"kode_daerah": {
"type": "string",
"example": "11.01"
},
"kode_prov": {
"type": "string",
"example": "11"
},
"logo_daerah": {
"type": "string",
"example": "https://example.com/logo.png"
},
"nama_daerah": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_ibu_kota": {
"type": "string",
"example": "Aceh Selatan"
},
"nama_prov": {
"type": "string",
"example": "Aceh"
},
"updated_at": {
"type": "string",
"example": "2025-08-11T13:00:00Z"
},
"updated_by": {
"type": "integer",
"example": 2
},
"zona_waktu": {
"type": "integer",
"example": 7
},
"zona_wilayah": {
"type": "string",
"example": "WIB"
}
}
},
"models.MstDaerahModel": {
"type": "object",
"properties": {
"daerah_khusus": {
"description": "daerah khusus adalah daerah khusus",
"type": "boolean",
"example": false
},
"id_daerah": {
"type": "integer",
"example": 119
},
"kode_daerah": {
"type": "string",
"example": "11.01"
},
"logo_daerah": {
"type": "string",
"example": "https://example.com/logo.png"
},
"nama_daerah": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_ibu_kota": {
"type": "string",
"example": "Aceh Selatan"
}
}
},
"models.MstDaerahPayloadModel": {
"type": "object",
"required": [
"id_prov",
"jns_pemda",
"kode_daerah",
"logo_daerah",
"nama_daerah",
"nama_ibu_kota",
"zona_waktu",
"zona_wilayah"
],
"properties": {
"daerah_khusus": {
"description": "daerah khusus adalah daerah khusus",
"type": "boolean",
"example": false
},
"id_prov": {
"type": "integer",
"example": 11
},
"jns_pemda": {
"description": "1=Provinsi, 2=Kabupaten, 3=Kota",
"type": "integer",
"example": 2
},
"kode_daerah": {
"description": "Kode wilayah kemendagri, contoh: Aceh -\u003e 11",
"type": "string",
"maxLength": 5,
"minLength": 2,
"example": "11.01"
},
"logo_daerah": {
"description": "Full url address image logo daerah",
"type": "string",
"example": "https://example.com/logo.png"
},
"nama_daerah": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_ibu_kota": {
"type": "string",
"example": "Aceh Selatan"
},
"zona_waktu": {
"type": "integer",
"example": 7
},
"zona_wilayah": {
"description": "WIB, WITA, WIT",
"type": "string",
"enum": [
"WIB",
"WIT",
"WITA"
],
"example": "WIB"
}
}
},
"models.MstKecamatanDetilModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"created_by": {
"type": "integer",
"example": 1
},
"deleted_at": {
"type": "string",
"example": "0001-01-01 00:00:00"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"id_kabkota": {
"type": "integer",
"example": 119
},
"id_kecamatan": {
"type": "integer",
"example": 2024
},
"id_provinsi": {
"type": "integer",
"example": 116
},
"kode_kabkota": {
"type": "string",
"example": "11.01"
},
"kode_kecamatan": {
"type": "string",
"example": "11.01.01"
},
"kode_provinsi": {
"type": "string",
"example": "11"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_kabkota": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_kecamatan": {
"type": "string",
"example": "Bakongan"
},
"nama_provinsi": {
"type": "string",
"example": "Aceh"
},
"updated_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"updated_by": {
"type": "integer",
"example": 1
}
}
},
"models.MstKecamatanModel": {
"type": "object",
"properties": {
"id_kabkota": {
"type": "integer",
"example": 119
},
"id_kecamatan": {
"type": "integer",
"example": 2024
},
"kode_kabkota": {
"type": "string",
"example": "11.01"
},
"kode_kecamatan": {
"type": "string",
"example": "11.01.01"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_kabkota": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_kecamatan": {
"type": "string",
"example": "Bakongan"
}
}
},
"models.MstKegiatanDetilModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"created_by": {
"type": "integer",
"example": 1
},
"daerah_khusus": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
440,
589
]
},
"deleted_at": {
"type": "string",
"example": "0001-01-01 00:00:00"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"disable": {
"type": "boolean",
"example": false
},
"id_bidang_urusan": {
"type": "integer",
"example": 55
},
"id_kegiatan": {
"type": "integer",
"example": 2777
},
"id_program": {
"type": "integer",
"example": 435
},
"id_urusan": {
"type": "integer",
"example": 11
},
"jenis_pemda": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
1,
2,
3
]
},
"kode_bidang_urusan": {
"type": "string",
"example": "1.01"
},
"kode_kegiatan": {
"type": "string",
"example": "1.01.02.1.01"
},
"kode_program": {
"type": "string",
"example": "1.01.02"
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_bidang_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN BIDANG PENDIDIKAN"
},
"nama_kegiatan": {
"type": "string",
"example": "Pengelolaan Pendidikan Sekolah Menengah Atas"
},
"nama_program": {
"type": "string",
"example": "PROGRAM PENGELOLAAN PENDIDIKAN"
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
},
"updated_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"updated_by": {
"type": "integer",
"example": 1
}
}
},
"models.MstKegiatanModel": {
"type": "object",
"properties": {
"disable": {
"type": "boolean",
"example": false
},
"id_bidang_urusan": {
"type": "integer",
"example": 55
},
"id_kegiatan": {
"type": "integer",
"example": 2777
},
"id_program": {
"type": "integer",
"example": 435
},
"id_urusan": {
"type": "integer",
"example": 11
},
"kode_bidang_urusan": {
"type": "string",
"example": "1.01"
},
"kode_kegiatan": {
"type": "string",
"example": "1.01.02.1.01"
},
"kode_program": {
"type": "string",
"example": "1.01.02"
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_bidang_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN BIDANG PENDIDIKAN"
},
"nama_kegiatan": {
"type": "string",
"example": "Pengelolaan Pendidikan Sekolah Menengah Atas"
},
"nama_program": {
"type": "string",
"example": "PROGRAM PENGELOLAAN PENDIDIKAN"
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
}
}
},
"models.MstKelurahanDetilModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"created_by": {
"type": "integer",
"example": 1
},
"deleted_at": {
"type": "string",
"example": "0001-01-01 00:00:00"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"id_kabkota": {
"type": "integer",
"example": 119
},
"id_kecamatan": {
"type": "integer",
"example": 2024
},
"id_kelurahan": {
"type": "integer",
"example": 24649
},
"id_provinsi": {
"type": "integer",
"example": 116
},
"kode_kabkota": {
"type": "string",
"example": "11.01"
},
"kode_kecamatan": {
"type": "string",
"example": "11.01.01"
},
"kode_kelurahan": {
"type": "string",
"example": "11.01.01.2001"
},
"kode_provinsi": {
"type": "string",
"example": "11"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_kabkota": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_kecamatan": {
"type": "string",
"example": "Bakongan"
},
"nama_kelurahan": {
"type": "string",
"example": "Keude Bakongan"
},
"nama_provinsi": {
"type": "string",
"example": "Aceh"
},
"updated_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"updated_by": {
"type": "integer",
"example": 1
}
}
},
"models.MstKelurahanModel": {
"type": "object",
"properties": {
"id_kabkota": {
"type": "integer",
"example": 119
},
"id_kecamatan": {
"type": "integer",
"example": 2024
},
"id_kelurahan": {
"type": "integer",
"example": 24649
},
"kode_kabkota": {
"type": "string",
"example": "11.01"
},
"kode_kecamatan": {
"type": "string",
"example": "11.01.01"
},
"kode_kelurahan": {
"type": "string",
"example": "11.01.01.2001"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_kabkota": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_kecamatan": {
"type": "string",
"example": "Bakongan"
},
"nama_kelurahan": {
"type": "string",
"example": "Keude Bakongan"
}
}
},
"models.MstProgramDetilModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"created_by": {
"type": "integer",
"example": 1
},
"daerah_khusus": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
440,
589
]
},
"deleted_at": {
"type": "string",
"example": "0001-01-01 00:00:00"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"disable": {
"type": "boolean",
"example": false
},
"id_bidang_urusan": {
"type": "integer",
"example": 55
},
"id_program": {
"type": "integer",
"example": 435
},
"id_urusan": {
"type": "integer",
"example": 11
},
"jenis_pemda": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
1,
2,
3
]
},
"kode_bidang_urusan": {
"type": "string",
"example": "1.01"
},
"kode_program": {
"type": "string",
"example": "1.01.02"
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_bidang_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN BIDANG PENDIDIKAN"
},
"nama_program": {
"type": "string",
"example": "PROGRAM PENGELOLAAN PENDIDIKAN"
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
},
"updated_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"updated_by": {
"type": "integer",
"example": 1
}
}
},
"models.MstProgramModel": {
"type": "object",
"properties": {
"disable": {
"type": "boolean",
"example": false
},
"id_bidang_urusan": {
"type": "integer",
"example": 55
},
"id_program": {
"type": "integer",
"example": 435
},
"id_urusan": {
"type": "integer",
"example": 11
},
"kode_bidang_urusan": {
"type": "string",
"example": "1.01"
},
"kode_program": {
"type": "string",
"example": "1.01.02"
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_bidang_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN BIDANG PENDIDIKAN"
},
"nama_program": {
"type": "string",
"example": "PROGRAM PENGELOLAAN PENDIDIKAN"
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
}
}
},
"models.MstSubKegiatanDetilModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"created_by": {
"type": "integer",
"example": 1
},
"daerah_khusus": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
440,
589
]
},
"deleted_at": {
"type": "string",
"example": "0001-01-01 00:00:00"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"disable": {
"type": "boolean",
"example": false
},
"id_bidang_urusan": {
"type": "integer",
"example": 55
},
"id_kegiatan": {
"type": "integer",
"example": 2777
},
"id_program": {
"type": "integer",
"example": 435
},
"id_sub_kegiatan": {
"type": "integer",
"example": 9019
},
"id_urusan": {
"type": "integer",
"example": 11
},
"jenis_pemda": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
1,
2,
3
]
},
"kode_bidang_urusan": {
"type": "string",
"example": "1.01"
},
"kode_kegiatan": {
"type": "string",
"example": "1.01.02.1.01"
},
"kode_program": {
"type": "string",
"example": "1.01.02"
},
"kode_sub_kegiatan": {
"type": "string",
"example": "1.01.02.1.01.01"
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_bidang_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN BIDANG PENDIDIKAN"
},
"nama_kegiatan": {
"type": "string",
"example": "Pengelolaan Pendidikan Sekolah Menengah Atas"
},
"nama_program": {
"type": "string",
"example": "PROGRAM PENGELOLAAN PENDIDIKAN"
},
"nama_sub_kegiatan": {
"type": "string",
"example": "Pembangunan USB (Unit Sekolah Baru)"
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
},
"updated_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"updated_by": {
"type": "integer",
"example": 1
}
}
},
"models.MstSubKegiatanModel": {
"type": "object",
"properties": {
"disable": {
"type": "boolean",
"example": false
},
"id_bidang_urusan": {
"type": "integer",
"example": 55
},
"id_kegiatan": {
"type": "integer",
"example": 2777
},
"id_program": {
"type": "integer",
"example": 435
},
"id_sub_kegiatan": {
"type": "integer",
"example": 9019
},
"id_urusan": {
"type": "integer",
"example": 11
},
"kode_bidang_urusan": {
"type": "string",
"example": "1.01"
},
"kode_kegiatan": {
"type": "string",
"example": "1.01.02.1.01"
},
"kode_program": {
"type": "string",
"example": "1.01.02"
},
"kode_sub_kegiatan": {
"type": "string",
"example": "1.01.02.1.01.01"
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_bidang_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN BIDANG PENDIDIKAN"
},
"nama_kegiatan": {
"type": "string",
"example": "Pengelolaan Pendidikan Sekolah Menengah Atas"
},
"nama_program": {
"type": "string",
"example": "PROGRAM PENGELOLAAN PENDIDIKAN"
},
"nama_sub_kegiatan": {
"type": "string",
"example": "Pembangunan USB (Unit Sekolah Baru)"
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
}
}
},
"models.MstUrusanDetilModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"created_by": {
"type": "integer",
"example": 1
},
"daerah_khusus": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
440,
589
]
},
"deleted_at": {
"type": "string",
"example": "0001-01-01 00:00:00"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"disable": {
"type": "boolean",
"example": false
},
"id_urusan": {
"type": "integer",
"example": 11
},
"jenis_pemda": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
1,
2,
3
]
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
},
"updated_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"updated_by": {
"type": "integer",
"example": 1
}
}
},
"models.MstUrusanModel": {
"type": "object",
"properties": {
"disable": {
"type": "boolean",
"example": false
},
"id_urusan": {
"type": "integer",
"example": 11
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
}
}
},
"models.MstUrusanPayloadModel": {
"type": "object",
"required": [
"daerah_khusus",
"jenis_pemda",
"kode_urusan",
"nama_urusan",
"tahun"
],
"properties": {
"daerah_khusus": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
440,
589
]
},
"jenis_pemda": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
1,
2,
3
]
},
"kode_urusan": {
"type": "string",
"example": "1"
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
},
"tahun": {
"type": "integer",
"example": 2023
}
}
},
"models.MstUrusanUpdatePayloadModel": {
"type": "object",
"required": [
"daerah_khusus",
"jenis_pemda",
"nama_urusan"
],
"properties": {
"daerah_khusus": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
440,
589
]
},
"jenis_pemda": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
1,
2,
3
]
},
"nama_urusan": {
"type": "string",
"example": "URUSAN PEMERINTAHAN WAJIB YANG BERKAITAN DENGAN PELAYANAN DASAR"
}
}
},
"models.RefDaerahModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-11T12:34:56Z"
},
"created_by": {
"type": "integer",
"example": 1
},
"daerah_khusus": {
"description": "daerah khusus adalah daerah khusus",
"type": "boolean",
"example": false
},
"deleted_at": {
"type": "string",
"example": "0001-01-01T00:00:00Z"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"id_daerah": {
"type": "integer",
"example": 1
},
"id_prov": {
"type": "integer",
"example": 31
},
"jns_pemda": {
"type": "integer",
"example": 2
},
"kode_ddn": {
"type": "string",
"example": "ID001"
},
"kode_unik": {
"type": "string",
"example": "550e8400-e29b-41d4-a716-446655440000"
},
"logo_daerah": {
"type": "string",
"example": "https://example.com/logo.png"
},
"nama_daerah": {
"type": "string",
"example": "Kota Jakarta"
},
"nama_ibu_kota": {
"type": "string",
"example": "Jakarta"
},
"updated_at": {
"type": "string",
"example": "2025-08-11T13:00:00Z"
},
"updated_by": {
"type": "integer",
"example": 2
},
"zona_waktu": {
"type": "integer",
"example": 7
},
"zona_wilayah": {
"type": "string",
"example": "WIB"
}
}
},
"models.RefDaerahModelPayload": {
"type": "object",
"required": [
"id_prov",
"jns_pemda",
"kode_ddn",
"logo_daerah",
"nama_daerah",
"nama_ibu_kota",
"zona_waktu",
"zona_wilayah"
],
"properties": {
"daerah_khusus": {
"description": "daerah khusus adalah daerah khusus",
"type": "boolean",
"example": false
},
"id_prov": {
"type": "integer",
"example": 31
},
"jns_pemda": {
"description": "1=Provinsi, 2=Kabupaten, 3=Kota",
"type": "integer",
"example": 2
},
"kode_ddn": {
"description": "Kode wilayah kemendagri, contoh: Aceh -\u003e 11",
"type": "string",
"maxLength": 5,
"minLength": 2,
"example": "ID001"
},
"logo_daerah": {
"description": "Full url address image logo daerah",
"type": "string",
"example": "https://example.com/logo.png"
},
"nama_daerah": {
"type": "string",
"example": "Kota Jakarta"
},
"nama_ibu_kota": {
"type": "string",
"example": "Jakarta"
},
"zona_waktu": {
"type": "integer",
"example": 7
},
"zona_wilayah": {
"description": "WIB, WITA, WIT",
"type": "string",
"enum": [
"WIB",
"WIT",
"WITA"
],
"example": "WIB"
}
}
},
"models.RefKecamatanDetilModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"created_by": {
"type": "integer",
"example": 1
},
"deleted_at": {
"type": "string",
"example": "0001-01-01 00:00:00"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"id_kabkota": {
"type": "integer",
"example": 119
},
"id_kecamatan": {
"type": "integer",
"example": 2024
},
"id_provinsi": {
"type": "integer",
"example": 116
},
"kode_kabkota": {
"type": "string",
"example": "11.01"
},
"kode_kecamatan": {
"type": "string",
"example": "11.01.01"
},
"kode_provinsi": {
"type": "string",
"example": "11"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_kabkota": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_kecamatan": {
"type": "string",
"example": "Bakongan"
},
"nama_provinsi": {
"type": "string",
"example": "Aceh"
},
"updated_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"updated_by": {
"type": "integer",
"example": 1
}
}
},
"models.RefKecamatanModel": {
"type": "object",
"properties": {
"id_kabkota": {
"type": "integer",
"example": 119
},
"id_kecamatan": {
"type": "integer",
"example": 2024
},
"kode_kabkota": {
"type": "string",
"example": "11.01"
},
"kode_kecamatan": {
"type": "string",
"example": "11.01.01"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_kabkota": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_kecamatan": {
"type": "string",
"example": "Bakongan"
}
}
},
"models.RefKelurahanDetilModel": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"created_by": {
"type": "integer",
"example": 1
},
"deleted_at": {
"type": "string",
"example": "0001-01-01 00:00:00"
},
"deleted_by": {
"type": "integer",
"example": 0
},
"id_kabkota": {
"type": "integer",
"example": 119
},
"id_kecamatan": {
"type": "integer",
"example": 2024
},
"id_kelurahan": {
"type": "integer",
"example": 24649
},
"id_provinsi": {
"type": "integer",
"example": 116
},
"kode_kabkota": {
"type": "string",
"example": "11.01"
},
"kode_kecamatan": {
"type": "string",
"example": "11.01.01"
},
"kode_kelurahan": {
"type": "string",
"example": "11.01.01.2001"
},
"kode_provinsi": {
"type": "string",
"example": "11"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_kabkota": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_kecamatan": {
"type": "string",
"example": "Bakongan"
},
"nama_kelurahan": {
"type": "string",
"example": "Keude Bakongan"
},
"nama_provinsi": {
"type": "string",
"example": "Aceh"
},
"updated_at": {
"type": "string",
"example": "2025-08-19 07:50:03"
},
"updated_by": {
"type": "integer",
"example": 1
}
}
},
"models.RefKelurahanModel": {
"type": "object",
"properties": {
"id_kabkota": {
"type": "integer",
"example": 119
},
"id_kecamatan": {
"type": "integer",
"example": 2024
},
"id_kelurahan": {
"type": "integer",
"example": 24649
},
"kode_kabkota": {
"type": "string",
"example": "11.01"
},
"kode_kecamatan": {
"type": "string",
"example": "11.01.01"
},
"kode_kelurahan": {
"type": "string",
"example": "11.01.01.2001"
},
"locked": {
"type": "boolean",
"example": false
},
"nama_kabkota": {
"type": "string",
"example": "Kab. Aceh Selatan"
},
"nama_kecamatan": {
"type": "string",
"example": "Bakongan"
},
"nama_kelurahan": {
"type": "string",
"example": "Keude Bakongan"
}
}
},
"utils.DataValidationError": {
"type": "object",
"properties": {
"field": {
"type": "string",
"example": "email"
},
"message": {
"type": "string",
"example": "Invalid email address"
}
}
},
"utils.RequestError": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"example": 422
},
"fields": {
"type": "array",
"items": {
"$ref": "#/definitions/utils.DataValidationError"
}
},
"message": {
"type": "string",
"example": "Invalid email address"
}
}
}
},
"securityDefinitions": {
"ApiKeyAuth": {
"type": "apiKey",
"name": "Authorization",
"in": "header"
}
}
}