Hello,
I am studying the RestAPI part with PHPMaker.
I am creating a CRUD but I have problems with the add and edit actions as shown below:
TABLE: CADUSU (CODUSU {key}, NOMCOM, ENDEMA)
OK -> List With URL Rewrite GET: /api/list/cadusu
OK -> View With URL Rewrite GET: /api/view/cadusu/milver.silva
OK -> Delete With URL Rewrite POST: /api/delete/cadusu/milver.silva
ERROR -> Edit Without URL Rewrite POST: /api/?action=edit&object=cadusu&CODUSU=milver.silva&NOMCOM=teste ("success": false,"failureMessage": "No records found","version":"16.0.1")
ERROR -> Edit With URL Rewrite POST: /api/edit/cadusu/milver.silva/NOMCOM=teste ("success": false,"failureMessage": "No records found","version":"16.0.1")
ERROR -> Add Without URL Rewrite POST: /api/?action=add&object=cadusu&CODUSU=MARCELA.SILVA&NOMCOM=MARCELA&ENDEMA=marcela@outlook.com (Notice: Undefined index: CODUSU in \classes\cadusu_add.php on line 1050)
ERROR -> Add With URL Rewrite POST: /api/add/cadusu/CODUSU=MARCELA.SILVA&NOMCOM=MARCELA&ENDEMA=marcela@outlook.com (Notice: Undefined index: CODUSU in \classes\cadusu_add.php on line 1050)
Note: Project without login.