API Documentation
Register
-
URL :
-
Method :
- POST
-
Request Body :
nama
as string- Tidak mengandung angka / Simbol
golongan
as string- Tidak boleh lebih dari 3 karakter
- golongan harus A, B, O, atau AB
jenis_kelamin
as stringno_whatsapp
as Int- Tidak boleh lebih dari 14 digit
- Minimal 11 digit
- Harus berupa angka
- Harus Diawali dengan 62
alamat
as stringemail
as stringpassword
as string- Minimal 8 karakter
-
Response :
{ "message": "Success Register", "data": { "email": "[email protected]", "password": "mypassword" } }
Login
-
URL :
-
Method :
- POST
-
Request Body :
email
as stringpassword
as string- Minimal 8 karakter
-
Response :
{ "message": "success", "login": { "nama": "Arif Kurniawan", "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1hIjoibmFtZSIsImlhdCI6MTY4NjAzMzEwMCwiZXhwIjoxNjg2MTE5NTAwfQ.n19KaWcnfwb5SNJbUuaf-pFOwlGhMTlzO0ZjERkWySU" } }
Home
-
URL :
-
Method :
- GET
-
Response :
{ "message": "All Request", "data": [ { "Rumah Sakit": "Primaya Hospital Bekasi Timur", "Dibutuhkan": 1, "alamat": "Jl. HM. Joyo Martono No.47, RT.003/RW.021, Margahayu, Kec. Bekasi Tim., Kota Bks", "Image URL": "https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=AZose0nq--bCxBNBHEtuzClWMYz1yn1n0ZPI4LLjQ9B0hqauJ9UO_TxMnnlcqIcQ0dUe1rLm8zZmbNJqCeqwmtfdh5gPGsGtAuEmV5BK-vpBv0GtaNp7pG1QijcFHW2L37rFNRlb7Y8zj4jy64_gv_iraSStbHeofEI-pYG_7V2pmwZj0nwp" }, { "Rumah Sakit": "Rumah Sakit Masmitra", "Dibutuhkan": 2, "alamat": "Jl. Raya Jati Makmur No.40, RT.001/RW.011, Jatimakmur, Kec. Pd. Gede, Kota Bks", "Image URL": "https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=AZose0mze8F6kXVLTEqgaClLlPTAEtFyM-0qzJiVumSukl_uoZ1t26VvwAj5-KWsVGsW3Bts6Jiay41DDTGRlI4HcDjJyHIVPPeHv7008Ti8S4IaDrjHqtgpCUWThindAzaP1ut-WOTyvwjoZoxPk1QFqivXFLKhar7TPC32ItgkFS_uaBjB" }, { "Rumah Sakit": "Rumah Sakit Umum Daerah Tasikmalaya", "Dibutuhkan": 1, "alamat": "Jl. Rumah Sakit No.33, Empangsari, Kec. Tawang, Kab. Tasikmalaya, Jawa Barat 46113", "Image URL": "https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=AZose0mdlBhVfUUp41cyc4yRiDuQMcu8ozSxugBQ4_SsNw_BPGJMtSI4SZ-EzGrleDLKVb6zLwDeZAIryflCMIstxTPxYHib_cSRyuWeziwltN-ptCC1O8wcCZxwT8OvFNULiaUfWJldPyIGgunhY4To3Uvgv0NxZQwv5ybuK7TKYdXw5Vg" } ] }
Home Search
-
URL :
-
Method :
- GET
-
Response :
{ "message": "All Request", "data": [ { "rumah_sakit": "Rumah Sakit Aceh Tamiang", "dibutuhkan": 1, "alamat": "Jl. Kesehatan No.1, Kesehatan, Kec. Karang Baru, Kabupaten Aceh Tamiang, Aceh 13760", "imageUrl": "https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=AZose0k_VaOLsPyX61ntylPgDSaXi1K9joWGLY101YGMhe-OwWNml5fWajdakV0nsLoF0OcCLlofTJtFRJVkgHejoizZHHMmSuHpEbkZLyI2JWS9NxFtE6kxJuWIu-lJfYZOuQBNbWa-" }, { "rumah_sakit": "Rumah Sakit Umum Daerah Yogyakarta", "dibutuhkan": 2, "alamat": "Jl. Ki Ageng Pemanahan No.1-6, Sorosutan, Kec. Umbulharjo, Kota Yogyakarta, Daerah Istimewa Yogyakarta 55162", "imageUrl": "https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=AZose0k_6nIbbcRkW94RIAl4LsUpGlIaHqMaizo0ftl4ZrmrAlj04Hwx8FEhUzFT4rnqRFldhuhlCNhkpUiM-ZhRyYurrAqpplBqDRokGVrFDwlNE4hlLc1IKGFBPyuwAGJfHRbayBxwYus3yr6YPdE0zxF7JG_tWRO-Hg-W-YwePi1ZAmOT" } ] }
-
Detail Home
-
URL :
-
Method :
- GET
-
Response :
{ "message": "Request Di Rumah Sakit Masmitra", "Gmaps URL": "https://maps.google.com/maps/place/?q=place_id:ChIJH9N6iEONaS4RHBywLDXTv7I", "data": [ { "id_request": 6871459390, "rumah_sakit": "Rumah Sakit Masmitra", "nama": "Daniel Dajal", "umur": 13456, "golongan": "A", "no_kamar": "R-60-wc", "whatsapp_url": "https://api.whatsapp.com/send?phone=62822543142" }, { "id_request": 7844585202, "rumah_sakit": "Rumah Sakit Masmitra", "nama": "Supri", "umur": 13456, "golongan": "A", "no_kamar": "R-60-wc", "whatsapp_url": "https://api.whatsapp.com/send?phone=62822543142" } ] }
Request Donor
-
URL :
-
Method :
- POST
-
Response Body :
rumah_sakit
as stringnama
as string- Tidak mengandung angka / Simbol
umur
as Int- Harus berupa angka / simbol
- Tidak lebih dari 120 tahun
- Tidak lebih dari 3 karakter
golongan
as string- Tidak boleh lebih dari 3 karakter
- golongan harus A, B, O, atau AB
no_kamar
as stringno_whatsapp
as Int- Tidak boleh lebih dari 14 digit
- Minimal 11 digit
- Harus berupa angka
- Harus Diawali dengan 62
-
Response :
{ "message": "Success", "data": { "rumah_sakit": "Rumah Sakit Umum Daerah Tasikmalaya", "nama": "Brian", "umur": "20", "golongan": "A", "no_kamar": "B-80-YR", "no_whatsapp": "6282200001111" } }
Request Aktif
-
URL :
-
Method :
- GET
-
Response :
{ "message": "Your Request", "data": [ { "id_request": 466787424, "id_users": "9", "rumah_sakit": "Rumah Sakit Aceh Tamiang", "nama": "Brian Sigit44452", "umur": 20, "golongan": "A", "no_kamar": "B-80-YR", "no_whatsapp": "6282200001111", "whatsapp_url": "https://api.whatsapp.com/send?phone=6282200001111" }, { "id_request": 3067690825, "id_users": "9", "rumah_sakit": "harapan ayah", "nama": "Brian Sigit44452", "umur": 20, "golongan": "A", "no_kamar": "B-80-YR", "no_whatsapp": "6282200001111", "whatsapp_url": "https://api.whatsapp.com/send?phone=6282200001111" }, { "id_request": 9844691480, "id_users": "9", "rumah_sakit": "Rumah Sakit Umum Daerah Yogyakarta", "nama": "Brian Sigit44452", "umur": 20, "golongan": "A", "no_kamar": "B-80-YR", "no_whatsapp": "6282200001111", "whatsapp_url": "https://api.whatsapp.com/send?phone=6282200001111" } ] }
Profile
-
URL :
-
Method :
- GET
-
Response :
{ "message": "GET profile by id Success", "data": [ { "id_users": "9369045468811756", "nama": "Sumoirop", "golongan": "C", "jenis_kelamin": "Laki-Laki", "tanggal_lahir": "2001-01-08T17:00:00.000Z", "no_whatsapp": 628283922290, "alamat": "Summarecon Bekasi", "email": "[email protected]" } ] }
-