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

2388 lines
59 KiB
YAML

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