Fakultas Ilmu Komputer UI

Commit ca928525 authored by M. Abdurrahman's avatar M. Abdurrahman
Browse files

[CHORES] create readme for register penyandang disabilitas

parent 092eeb70
Pipeline #44788 passed with stages
in 6 minutes and 26 seconds
......@@ -206,4 +206,48 @@ It will return a json with key:
* `jumlah_siswa` : number of students
* `status` : status of the sekolah (swasta, negri, or international)
* `jenis_sekolah` : type of sekolah's management (inklusi, segregasi)
* `akreditasi` : accreditation
\ No newline at end of file
* `akreditasi` : accreditation
### 15. To register penyandang disabilitas:
Make `POST` request to API endpoint `/layanan-khusus/penyandang/register/` with the following key:
* `name` : name
* `alamat` : currrent address
* `tempat_lahir` : place of birth
* `tanggal_lahir` : date of birth (yyyy-mm-dd)
* `jenis_kelamin` : sex ("LAKI-LAKI" or "PEREMPUAN")
* `pendidikan` : education
* The options are :
* SD = "SD"
* SMP/SLTP = "MP"
* SMA/SLTA = "MA"
* Diploma 1 = "D1"
* Diploma 2 = "D2"
* Diploma 3 = "D3"
* Sarjana = "S1"
* Magister = "S2"
* Doktor = "S3"
* Non-Formal/Lainnya = "NF"
* Tidak Sekolah = "NA"
* `pekerjaan` : occupation
* The options are :
* Petani = "PT"
* Buruh = "BR"
* Pedagang/Wiraswasta = "WS"
* Jasa = "JS"
* PNS/TNI/POLRI = "PN"
* Pensiunan = "SN"
* Ibu Rumah Tangga = "IR"
* Pelajar = "PL"
* Lainnya = "LA"
* Tidak Bekerja = "NA"
* `kategori` : disability type
* The option are :
* fisik = "FS"
* intelektual = "IN"
* mental = "MN"
* sensorik = "SN"
* `no_telp` : phone number
* `email` : email
* `nama_wali` : name of parent/guardian
* `alamat_wali` : address of parent/guardian
* `telp_wali` : phone number of parent/guardian
......@@ -30,7 +30,7 @@ class Sekolah(models.Model):
class Penyandang(models.Model):
JENIS_KELAMIN = (
JENIS_KELAMIN_OPTION = (
("LAKI-LAKI", "Laki-Laki"),
("PEREMPUAN", "Perempuan")
)
......@@ -47,7 +47,7 @@ class Penyandang(models.Model):
("NF", "Non-Formal/Lainnya"),
("NA", "Tidak Sekolah")
)
PEKERJAAN = (
PEKERJAAN_OPTION = (
("PT", "Petani"),
("BR", "Buruh"),
("WS", "Pedagang/Wiraswasta"),
......@@ -71,7 +71,7 @@ class Penyandang(models.Model):
tanggal_lahir = models.DateField()
jenis_kelamin = models.CharField(
max_length=9,
choices=JENIS_KELAMIN,
choices=JENIS_KELAMIN_OPTION,
default="LAKI-LAkI"
)
pendidikan = models.CharField(
......@@ -81,14 +81,14 @@ class Penyandang(models.Model):
)
pekerjaan = models.CharField(
max_length=2,
choices=PEKERJAAN,
choices=PEKERJAAN_OPTION,
default="NA"
)
kategori = models.CharField(
max_length=2,
choices=KATEGORI_DISABILITAS,
default="FS"
)
)
no_telp = models.CharField(max_length=16, null=True)
email = models.CharField(max_length=50, null=True)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment