Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

api.php 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. Route::group(['middleware' => 'mobileapps'], function() {
  14. /*-------------------------------------------------------------------------
  15. | Staff Login/Logout/Detail
  16. |-------------------------------------------------------------------------*/
  17. Route::post('/mobile/staff/login', 'Api\LoginController@requestStaffLogin');
  18. Route::post('/mobile/staff/logout', 'Api\LoginController@requestStaffLogout');
  19. Route::post('/mobile/staff/department/list', 'Api\DepartmentController@requestStaffDepartment');
  20. Route::post('/mobile/staff/deedlaw/list', 'Api\DepartmentController@requestStaffDeedLaw');
  21. Route::post('/mobile/staff/faulty/list', 'Api\DepartmentController@requestStaffFaulty');
  22. Route::post('/mobile/staff/update/coordinates', 'Api\TrackMapController@save_updateLocation');
  23. Route::post('/mobile/staff/compound/today/list', 'Api\CompoundController@viewCompoundToday');
  24. Route::post('/mobile/staff/notice/today/list', 'Api\CompoundController@viewNoticeToday');
  25. Route::post('/mobile/store/compound', 'Api\CompoundResourceController@store');
  26. Route::post('/mobile/store/notice', 'Api\CompoundResourceController@storeNotice');
  27. Route::post('/mobile/store/compound/picture', 'Api\CompoundController@storeCompoundAttachment');
  28. Route::post('/mobile/store/acceptance/compound', 'Api\CompoundController@storeAcceptanceCompound');
  29. /*-------------------------------------------------------------------------
  30. | Department
  31. |-------------------------------------------------------------------------*/
  32. Route::get('/department/list', 'Api\DepartmentController@departmentList');
  33. Route::post('/department/detail', 'Api\DepartmentController@departmentDetail');
  34. Route::post('/delete/department', 'Api\DepartmentController@deleteDepartment');
  35. Route::get('/filter-department-based-faulty/{id}', 'Api\DepartmentController@filterDepartmentBasedFaulty');
  36. /*-------------------------------------------------------------------------
  37. | Acts & UUK
  38. |-------------------------------------------------------------------------*/
  39. Route::get('/deed-law/list', 'Api\DepartmentController@deedLawList');
  40. Route::get('/officer/{jbkod}/deed-law/list', 'Api\DepartmentController@officerDeedLawList');
  41. Route::post('/deed-law/detail', 'Api\DepartmentController@deedLawDetail');
  42. Route::post('/delete/deed-law', 'Api\DepartmentController@deleteDeedLaw');
  43. Route::get('/get-deedlaw-based-faulty/{id}', 'Api\DepartmentController@getDeedlawBasedFaulty');
  44. /*-------------------------------------------------------------------------
  45. | Faulty
  46. |-------------------------------------------------------------------------*/
  47. Route::get('/faulty/list/{id}', 'Api\DepartmentController@faultyList');
  48. Route::get('/officer/{jbkod}/faulty/list', 'Api\DepartmentController@officerFaultyList');
  49. Route::get('/faulty/{jbkod}/{akkod}/list', 'Api\DepartmentController@faultyListFilter');
  50. Route::post('/faulty/detail', 'Api\DepartmentController@faultyDetail');
  51. Route::post('/delete/faulty', 'Api\DepartmentController@deleteFaulty');
  52. /*-------------------------------------------------------------------------
  53. | Staff
  54. |-------------------------------------------------------------------------*/
  55. Route::get('/staff/list/{roles}', 'Api\StaffController@staffList');
  56. Route::get('/officer/{jbkod}/staff/list/{roles}', 'Api\StaffController@officerStaffList');
  57. Route::get('/staff/{department}/{position}/{module}/list/{roles}', 'Api\StaffController@staffFilterList');
  58. Route::post('/staff/detail', 'Api\StaffController@staffDetail');
  59. Route::post('/delete/staff', 'Api\StaffController@deleteStaff');
  60. /*-------------------------------------------------------------------------
  61. | Application
  62. |-------------------------------------------------------------------------*/
  63. Route::get('/user/app/list', 'Api\ApplicationController@appList');
  64. Route::get('{jbkod}/user/app/list', 'Api\ApplicationController@officerAppList');
  65. /*-------------------------------------------------------------------------
  66. | Compound
  67. |-------------------------------------------------------------------------*/
  68. Route::get('/list/compound', 'Api\CompoundResourceController@index');
  69. Route::post('/update/compound/via-dashboard', 'Api\CompoundResourceController@updateStatusPaymentViaDashboard');
  70. Route::get('/compound/list/{modul}', 'Api\CompoundController@compoundList');
  71. Route::get('/compound/{jbkod}/{akta}/{sec}/list/{modul}', 'Api\CompoundController@compoundFilterList');
  72. Route::get('/compound/completed/list', 'Api\CompoundController@compoundCompleteLists');
  73. Route::get('/compound/completed/{jbkod}/{akta}/{sec}/list', 'Api\CompoundController@compoundCompleteFilterList');
  74. Route::get('/compound/{no_siri}/memo/list', 'Api\MemoController@memoList');
  75. Route::post('/compound/delete/memo', 'Api\MemoController@deleteMemo');
  76. /*-------------------------------------------------------------------------
  77. | Investigation
  78. |-------------------------------------------------------------------------*/
  79. Route::get('/investigation/{no_siri}/attachment/list', 'Api\InvestigationController@investigationAttachmentList');
  80. Route::post('/investigation/attachment/delete', 'Api\InvestigationController@deleteAttachment');
  81. /*-------------------------------------------------------------------------
  82. | Inventory
  83. |-------------------------------------------------------------------------*/
  84. Route::get('/inventory/{no_siri}/list', 'Api\InventoryController@iventoryList');
  85. Route::post('/inventory/detail', 'Api\InventoryController@getDetail');
  86. Route::post('/inventory/delete', 'Api\InventoryController@deleteItem');
  87. /*-------------------------------------------------------------------------
  88. | Setting
  89. |-------------------------------------------------------------------------*/
  90. Route::get('/setting/memo/list', 'Api\SettingController@memoList');
  91. Route::post('/setting/memo/confirm', 'Api\SettingController@confirmMemo');
  92. Route::post('/setting/delete/memo', 'Api\SettingController@deleteMemo');
  93. Route::get('/setting/template/{_id}/{status}/list', 'Api\SettingController@templateList');
  94. Route::post('/setting/template/confirm', 'Api\SettingController@confirmTemplate');
  95. Route::post('/setting/template/send-email', 'Api\SettingController@sendNotice');
  96. Route::post('/setting/template/delete', 'Api\SettingController@deleteTemplate');
  97. Route::get('/setting/api-key/list', 'Api\SettingController@apiKeyList');
  98. Route::post('/delete-api-key', 'Api\SettingController@deleteApiKey');
  99. Route::get('/setting/api-integration/list', 'Api\SettingController@apiKeyIntegrationList');
  100. /*-------------------------------------------------------------------------
  101. | Tracking Map
  102. |-------------------------------------------------------------------------*/
  103. Route::get('/track/staff/list', 'Api\TrackMapController@getStaffList');
  104. Route::get('/track/coordinates/{id}/list', 'Api\TrackMapController@getNearestLocation');
  105. Route::post('/update/emergency/status', 'Api\TrackMapController@postEmergency');
  106. Route::post('/update/normal/status', 'Api\TrackMapController@returnNormal');
  107. /*-------------------------------------------------------------------------
  108. | Cron Job
  109. |-------------------------------------------------------------------------*/
  110. Route::get('/cron/job/update-compound-price', 'Api\JobController@JobMemo');
  111. Route::get('/cron/job/send-notice-letter', 'Api\JobController@sendLetterNotice');
  112. /*-------------------------------------------------------------------------
  113. | Payment
  114. |-------------------------------------------------------------------------*/
  115. Route::post('/compound/make/payment', 'PaymentController@makeMobilePayment');
  116. Route::post('/payment/compound', 'Api\PaymentController@paymentCompound');
  117. Route::post('/update/payment/compound', 'Api\PaymentController@updatePayment');
  118. Route::get('/report/payment/list', 'Api\PaymentController@reportpaymentList');
  119. /*-------------------------------------------------------------------------
  120. | Notification
  121. |-------------------------------------------------------------------------*/
  122. Route::post('/update/firebase/token', 'NotificationController@saveToken');
  123. Route::post('/push/notification', 'NotificationController@sendNotification');
  124. Route::post('/mobile/notification/list', 'NotificationController@getNotificationMobile');
  125. Route::post('/web/notification/list', 'NotificationController@getNotificationWeb');
  126. Route::post('/delete/notification', 'NotificationController@deleteNotification');
  127. /*-------------------------------------------------------------------------
  128. | Enforcer Task/Job
  129. |-------------------------------------------------------------------------*/
  130. Route::post('/enforcer/compound/list', 'Api\CompoundController@confidentialFileList');
  131. Route::post('/enforcer/inventory/list', 'Api\InventoryController@iventoryListMobile');
  132. Route::post('/enforcer/add/inventory', 'Api\InventoryController@addItemMobile');
  133. Route::post('/enforcer/add/inventory/picture', 'Api\InventoryController@addItemPictureMobile');
  134. Route::post('/enforcer/inventory/scan/barcode', 'Api\InventoryController@getDetailMobile');
  135. Route::post('/enforcer/delete/inventory', 'Api\InventoryController@deleteItemMobile');
  136. /*-------------------------------------------------------------------------
  137. | Statistics
  138. |-------------------------------------------------------------------------*/
  139. Route::get('/report/compound/list/{start}/{end}', 'Api\StatisticController@reportCompoundList');
  140. /*-------------------------------------------------------------------------
  141. | Export / Store Report Data
  142. |-------------------------------------------------------------------------*/
  143. Route::get('/get/onsite/payment/enforcer', 'Api\Export\CaculationOnSiteReport@returnReportOnSite');
  144. Route::get('/get/masukkan_data/{year}/{jbkod}', 'Api\Export\CalculationReportEnforcer@report_enforcer');
  145. Route::get('/get/statistic-compound/enforcer', 'Api\Export\CalculationReportEnforcer@returnReportEnforcer');
  146. Route::get('/get/statistic-faulty', 'Api\Export\CalculationReportFaulty@returnReportFaulty');
  147. Route::get('/get/backlog-compound', 'Api\Export\CalculationReportBacklog@returnBacklogCompound');
  148. Route::get('/get/current-compound', 'Api\Export\CalculateReportCurrentCompound@returnReportCurrentCompound');
  149. Route::get('/run_faulty_db/{year}', 'Api\Export\CalculationReportFaulty@run_statistik');
  150. /*-------------------------------------------------------------------------
  151. | API Integration
  152. |-------------------------------------------------------------------------*/
  153. Route::post('/search/compound', 'Api\RestfulapiController@viewCompoundPersonal');
  154. Route::post('/update/compound/payment', 'Api\RestfulapiController@updatePaymentIntegrasi');
  155. Route::get('/get/compound-for/epbt', 'Api\RestfulapiController@compoundToEPBT');
  156. Route::get('/store/external/summon', 'Api\ImportDataController@storeExternalCompound');
  157. /*--------------------------------------------------------------------------
  158. | AREA, RESIDENCE, ROADS
  159. |---------------------------------------------------------------------------*/
  160. Route::get('/insert/area/res/road', 'Api\DataController@insertArea');
  161. Route::get('/code/bandar', 'Api\EpbtController@getCodeBandar');
  162. Route::post('/code/taman', 'Api\EpbtController@getCodeTaman');
  163. Route::post('/code/jalan', 'Api\EpbtController@getCodeJalan');
  164. });